File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 16
16
17
17
logger = logging .getLogger (__name__ )
18
18
19
+ JIRA_DESCRIPTION_CHAR_LIMIT = 32767
19
20
JIRA_REQUIRED_PERMISSIONS = {
20
21
"ADD_COMMENTS" ,
21
22
"CREATE_ISSUES" ,
@@ -187,10 +188,14 @@ def create_and_link_issue( # pylint: disable=too-many-locals
187
188
},
188
189
)
189
190
comment_list = self .bugzilla_client .get_comments (idlist = [bug_obj .id ])
191
+ description = comment_list ["bugs" ][str (bug_obj .id )]["comments" ][0 ]["text" ][
192
+ :JIRA_DESCRIPTION_CHAR_LIMIT
193
+ ]
194
+
190
195
fields = {
191
196
** bug_obj .map_as_jira_issue (), # type: ignore
192
197
"issuetype" : {"name" : bug_obj .issue_type ()},
193
- "description" : comment_list [ "bugs" ][ str ( bug_obj . id )][ "comments" ][ 0 ][ "text" ] ,
198
+ "description" : description ,
194
199
"project" : {"key" : self .jira_project_key },
195
200
}
196
201
You can’t perform that action at this time.
0 commit comments