Skip to content

#2475 and enhancement - JIRA webhook notification - #2786

Merged
mtesauro merged 2 commits into
DefectDojo:devfrom
manav-nagla:master
Aug 21, 2020
Merged

mtesauro merged 2 commits into
DefectDojo:devfrom
manav-nagla:master

Conversation

@manav-nagla

Copy link
Copy Markdown
Contributor

Check for JIRA username to prevent duplicate message from JIRA to DefectDojo.
Added notification when JIRA is updated via JIRA Webhook.

@Maffooch Maffooch left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one looks okay, but in the future, start your PR on the dev branch of your fork instead of master. The branches can become very different pretty quickly and could potentially overwrite someone else's work!

@dayal18

dayal18 commented Aug 18, 2020

Copy link
Copy Markdown
Contributor

@Maffooch Noted !! Thanks :)

@mtesauro
mtesauro self-requested a review August 21, 2020 02:16

@mtesauro mtesauro left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

@mtesauro
mtesauro merged commit 1e5888a into DefectDojo:dev Aug 21, 2020
Comment thread dojo/jira_link/views.py
jissue = JIRA_Issue.objects.get(jira_id=jid)
jira = JIRA_Conf.objects.values_list('username', flat=True)
for jira_userid in jira:
if jira_userid.lower() in commentor.lower():

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This condition will not work in all cases as the displayName inside Jira webhooks is not necessarily equal to the user name configured inside DDJ. The displayName in my integration is equal to the user + the name (john doe) and inside DDJ is the email address (john.doe@domain).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

proposal for a more robust mechanism here -> #2815

9alexx3 pushed a commit to 9alexx3/django-DefectDojo that referenced this pull request Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants