Repository navigation
#2475 and enhancement - JIRA webhook notification - #2786
Merged
Merged
Conversation
Maffooch
approved these changes
Aug 18, 2020
Maffooch
left a comment
Contributor
There was a problem hiding this comment.
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!
Contributor
|
@Maffooch Noted !! Thanks :) |
SPoint42
approved these changes
Aug 20, 2020
SPoint42
approved these changes
Aug 20, 2020
mtesauro
self-requested a review
August 21, 2020 02:16
xens
reviewed
Aug 28, 2020
| 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(): |
Contributor
There was a problem hiding this comment.
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).
Contributor
There was a problem hiding this comment.
proposal for a more robust mechanism here -> #2815
9alexx3
pushed a commit
to 9alexx3/django-DefectDojo
that referenced
this pull request
Aug 12, 2026
…jo#2786) Co-authored-by: Manav Nagla <dayal18@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Check for JIRA username to prevent duplicate message from JIRA to DefectDojo.
Added notification when JIRA is updated via JIRA Webhook.