Skip to content

Commit c538f33

Browse files
authored
Merge pull request #59 from cxpsemea/dev-jc
fix: changing severity of existing jira ticket
2 parents a9e9a96 + ee6585b commit c538f33

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cxoneflow/src/cxjiraapicaller.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def projecteditissue(self, issueid, description: str = None, fieldsandvalues: li
203203
if description :
204204
payload['description'] = [ { 'set': description } ]
205205
if priority :
206-
payload['priority'] = { 'name': priority }
206+
payload['priority'] = [ { 'set': { 'name': priority } } ]
207207
# Add labels field
208208
if labels :
209209
xlabels = []

cxoneflow/src/cxjirafeedback.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1066,7 +1066,7 @@ def __processjiraticket( self, scanner: str, ticketsummary: str, ticket: cxresul
10661066
# Check fields
10671067
if len(fields) == 0 :
10681068
fields = None
1069-
1069+
10701070
if newdescription or newpriority or newlabels or fields :
10711071
try :
10721072
self.jira.projecteditissue( ticketkey, newdescription, fields, newlabels, newpriority )

0 commit comments

Comments
 (0)