From 9f9c62017151bb50abc94f4008bd491f5c7e133d Mon Sep 17 00:00:00 2001 From: Avery Lee Date: Mon, 17 Mar 2025 11:04:08 -0700 Subject: [PATCH 1/3] Remove newline character(s) from Jira ticket title. --- src/dispatch/plugins/dispatch_jira/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dispatch/plugins/dispatch_jira/plugin.py b/src/dispatch/plugins/dispatch_jira/plugin.py index 222dbda7d774..0ebcf180532d 100644 --- a/src/dispatch/plugins/dispatch_jira/plugin.py +++ b/src/dispatch/plugins/dispatch_jira/plugin.py @@ -465,7 +465,7 @@ def create_case_ticket( "issuetype": issuetype, "assignee": assignee, "reporter": reporter, - "summary": title, + "summary": title.strip(), } ticket = create(self.configuration, client, issue_fields) From 47f8bd22a56765ae285240dcab29af489498f785 Mon Sep 17 00:00:00 2001 From: Avery Date: Mon, 17 Mar 2025 11:19:21 -0700 Subject: [PATCH 2/3] Update src/dispatch/plugins/dispatch_jira/plugin.py Co-authored-by: Aaron Herman Signed-off-by: Avery --- src/dispatch/plugins/dispatch_jira/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dispatch/plugins/dispatch_jira/plugin.py b/src/dispatch/plugins/dispatch_jira/plugin.py index 0ebcf180532d..3ab069dbc95e 100644 --- a/src/dispatch/plugins/dispatch_jira/plugin.py +++ b/src/dispatch/plugins/dispatch_jira/plugin.py @@ -465,7 +465,7 @@ def create_case_ticket( "issuetype": issuetype, "assignee": assignee, "reporter": reporter, - "summary": title.strip(), + "summary": title.replace("\n", ""), } ticket = create(self.configuration, client, issue_fields) From b33bddf52052e1a4dd3d150b0bc5eba83ac275ca Mon Sep 17 00:00:00 2001 From: Aaron Herman Date: Mon, 17 Mar 2025 13:31:41 -0500 Subject: [PATCH 3/3] Removing newline char on more titles --- src/dispatch/plugins/dispatch_jira/plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dispatch/plugins/dispatch_jira/plugin.py b/src/dispatch/plugins/dispatch_jira/plugin.py index 3ab069dbc95e..7d14ea1daa64 100644 --- a/src/dispatch/plugins/dispatch_jira/plugin.py +++ b/src/dispatch/plugins/dispatch_jira/plugin.py @@ -335,7 +335,7 @@ def create( "issuetype": issuetype, "assignee": assignee, "reporter": reporter, - "summary": title, + "summary": title.replace("\n", ""), **other_fields, } @@ -518,7 +518,7 @@ def create_task_ticket( "issuetype": issuetype, "assignee": assignee, "reporter": reporter, - "summary": title, + "summary": title.replace("\n", ""), **other_fields, }