-
Notifications
You must be signed in to change notification settings - Fork 31
Open
Description
Apparently, GitHub will accept/allow newlines in an Issue title, but Jira (Datacenter) will not allow them in the ticket summary:
[2025-10-17 12:57:43,764] INFO: Creating issue for <Issue https://github.com/complytime/complybeacon/issues/25 >: {'summary': '[complytime/complybeacon] Add a policy-based caching layer to truthbeam - \n \n \n complybeacon/truthbeam/processor.go\n \n \n Line 23\n in\n 5f78c4f\n \n \n \n \n\n \n \n // TODO: Cache results by polic', 'description': '[3526087166] Upstream Reporter: Jennifer Power\nUpstream issue status: Open\nUpstream description: {quote}{quote}\nUpstream URL: https://github.com/complytime/complybeacon/issues/25', 'issuetype': {'name': 'Task'}, 'project': {'key': 'CPLYTM'}, 'components': [{'name': 'complybeacon'}]}
[2025-10-17 12:57:43,797] INFO: [Issue] Jira retry failed; aborting
[2025-10-17 12:57:43,797] ERROR: Unexpected Jira error: JiraError HTTP 400 url: https://issues.redhat.com/rest/api/2/issue
response headers = {[...]}
response text = {"errorMessages":[],"errors":{"summary":"The summary is invalid because it contains newline characters."}}
So, sync2jira should probably sanitize the title before using it as a summary, stripping or escaping the newlines, or truncating the string at the first one.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels