django-DefectDojo icon indicating copy to clipboard operation
django-DefectDojo copied to clipboard

[Jira Integration] Story Status Update Problem

Open fxble opened this issue 2 years ago • 1 comments

Problem:

I was working on the Jira integration. The DefectDojo side worked as expected. I can export to Jira and the status of the stories is getting updated as I update the findings in DefectDojo. But the Jira side wasn't working as expected. When I updated my stories in Jira there was no status change in DefectDojo.


Bug:

When I tried to update my findings/stories in Jira I got an error message that there is no key 'name'.

In /django-DefectDojo/master/dojo/jira_link/views.py in line 80: https://github.com/DefectDojo/django-DefectDojo/blob/612a0f682ae0a4e007196de4f438782464b3ae3d/dojo/jira_link/views.py#L80

I looked into the dictionary DefectDojo received from Jira and recognized that there is no key 'name'. Instead there is a key 'displayName' which holds the name of the assignee.


Solution:

In https://github.com/DefectDojo/django-DefectDojo/blob/master/dojo/jira_link/views.py I replaced dictionary key 'name' with 'displayName'. After that change everything works as expected.


I have not reproduced, checked or confirmed this issue for other Jira instances or Jira in general. Maybe this issue is similar to #6057 .

Maybe there are other persons who can confirm this bug or behavior.

fxble avatar May 09 '22 16:05 fxble

I've faced the same issue, but, even confirming that Jira sends the assignee name as displayName, changing the key name to displayName in the /django-DefectDojo/master/dojo/jira_link/views.py file didn't work. Tested with version 2.11.0 and Jira cloud.

alexandrevieira-ze avatar Jul 21 '22 13:07 alexandrevieira-ze