Close Jira Issue does not working when closing a finding
Hi. I found that we're unable to close the finding ticket in Jira (Cloud Jira). before we're using v2.20.1 and it still works and after updating to v2.26.3 it suddenly not sending the comment and the jira status update here are the logs
[26/Sep/2023 10:04:41] INFO [celery.app.trace:131] Task dojo.tasks.async_dupe_delete[b3fbdbdc-a880-43f7-879b-8cc64aee593e] succeeded in 0.004412852227687836s: None [26/Sep/2023 10:05:06] INFO [celery.worker.strategy:161] Task dojo.utils.close_external_issue[9be5ba73-3249-4e61-9012-6e3c847c644a] received [26/Sep/2023 10:05:06] INFO [celery.app.trace:131] Task dojo.utils.close_external_issue[9be5ba73-3249-4e61-9012-6e3c847c644a] succeeded in 0.012584502808749676s: None [26/Sep/2023 10:05:06] INFO [celery.worker.strategy:161] Task dojo.finding.helper.post_process_finding_save[9aa69e59-c3ea-4791-a477-a8cff8db3010] received [26/Sep/2023 10:05:06] INFO [celery.app.trace:131] Task dojo.finding.helper.post_process_finding_save[9aa69e59-c3ea-4791-a477-a8cff8db3010] succeeded in 0.009278942830860615s: None [26/Sep/2023 10:05:06] INFO [celery.worker.strategy:161] Task dojo.notifications.helper.send_msteams_notification[8022a649-8011-405c-85f0-9748611d648a] received [26/Sep/2023 10:05:10] INFO [celery.app.trace:131] Task dojo.notifications.helper.send_msteams_notification[8022a649-8011-405c-85f0-9748611d648a] succeeded in 3.921074328944087s: None [26/Sep/2023 10:05:10] INFO [celery.worker.strategy:161] Task dojo.notifications.helper.send_msteams_notification[47afd1be-6479-44d1-9b2c-af5be70e6df6] received [26/Sep/2023 10:05:10] INFO [celery.app.trace:131] Task dojo.notifications.helper.send_msteams_notification[47afd1be-6479-44d1-9b2c-af5be70e6df6] succeeded in 0.00036281393840909004s: None [26/Sep/2023 10:05:41] INFO [celery.worker.strategy:161] Task dojo.tasks.async_dupe_delete[5cc64763-b22b-4f5b-ac3d-36ebc3de8fd4] received [26/Sep/2023 10:05:41] INFO [celery.app.trace:131] Task dojo.tasks.async_dupe_delete[5cc64763-b22b-4f5b-ac3d-36ebc3de8fd4] succeeded in 0.00437155831605196s: None
when I compare it to our local defectdojo that sent a close request to Jira local (not cloud) it is working normally with below logs
[26/Sep/2023 09:36:09] INFO [celery.app.trace:131] Task dojo.tasks.async_dupe_delete[089bb446-a2fe-4fea-9fc7-d7ca9f10f87d] succeeded in 0.006762905046343803s: None [26/Sep/2023 09:36:21] INFO [celery.worker.strategy:161] Task dojo.utils.close_external_issue[97dbf75b-5172-4b65-a235-ec9e9527780f] received [26/Sep/2023 09:36:21] INFO [celery.app.trace:131] Task dojo.utils.close_external_issue[97dbf75b-5172-4b65-a235-ec9e9527780f] succeeded in 0.020419767126441002s: None [26/Sep/2023 09:36:21] INFO [celery.worker.strategy:161] Task dojo.jira_link.helper.add_comment[a62d44fb-575c-4ebf-926f-a3f64a5c0aae] received [26/Sep/2023 09:36:22] INFO [celery.app.trace:131] Task dojo.jira_link.helper.add_comment[a62d44fb-575c-4ebf-926f-a3f64a5c0aae] succeeded in 0.4849044680595398s: True [26/Sep/2023 09:36:22] INFO [celery.worker.strategy:161] Task dojo.finding.helper.post_process_finding_save[803e0402-b4a1-4454-99a1-63ce986b788b] received [26/Sep/2023 09:36:22] INFO [celery.app.trace:131] Task dojo.finding.helper.post_process_finding_save[803e0402-b4a1-4454-99a1-63ce986b788b] succeeded in 0.04339374788105488s: None [26/Sep/2023 09:36:22] INFO [celery.worker.strategy:161] Task dojo.jira_link.helper.update_jira_issue_for_finding[a9cfb261-8776-4435-9d78-8f9d1cf7c9b3] received [26/Sep/2023 09:36:22] INFO [celery.app.trace:131] Task dojo.jira_link.helper.update_jira_issue_for_finding[a9cfb261-8776-4435-9d78-8f9d1cf7c9b3] succeeded in 0.6336308941245079s: True [26/Sep/2023 09:36:22] INFO [celery.worker.strategy:161] Task dojo.finding.helper.post_process_finding_save[d4190d54-899b-469a-8964-875577ba4b2b] received [26/Sep/2023 09:36:22] INFO [celery.app.trace:131] Task dojo.finding.helper.post_process_finding_save[d4190d54-899b-469a-8964-875577ba4b2b] succeeded in 0.02380809187889099s: None [26/Sep/2023 09:37:09] INFO [celery.worker.strategy:161] Task dojo.tasks.async_dupe_delete[9d3d79fd-c1a5-4323-8771-d97fbb941591] received
as you can see, some tasks did not run such as add_comment and update_jira_issue_for_finding. anyone have some thougt about this?
Steps to reproduce Steps to reproduce the behavior:
- configure jira integration
- view finding that already have jira issue linked
- close the finding and fill the notes/comment
- close finding
- result (did not close the jira ticket)
Expected behavior wanted to know why is this possible, and possibility to fix this issue
Deployment method (select with an X)
- [X] Docker Compose
- [ ] Kubernetes
- [ ] GoDojo
Environment information
- Operating System: CentOS 7
- DefectDojo version : v2.26.3
Logs
Use docker-compose logs (or similar, depending on your deployment method) to get the logs and add the relevant sections here showing the error occurring (if applicable).
Sample scan files If applicable, add sample scan files to help reproduce your problem.
Screenshots
Production Dojo pushing to Jira Cloud
Local Dojo pushing to local jira
Additional context (optional) Add any other context about the problem here.
add note: as you can see, some tasks did not run such as add_comment and update_jira_issue_for_finding. Does anyone have some thoughts about this?
Are you still seeing this and are you using the API or UI to close findings? Via the API will soon support closing the issue in JIRA via https://github.com/DefectDojo/django-DefectDojo/pull/13230