Skip to content

JIRA WebHook - Duplicate messages #2475

Closed

Description

@dayal18

Bug description
The JIRA webhook finally worked with 1.6.. for some reason the trailing "/" from the "https:///webhook/" URL in the JIRA config of our server was missing.

Anyways, as its working - the next issue I see is with duplicates updating JIRA webhook readings.

Add a new product with "Push Notes" enabled.

Use case 1: DefectDojo creates a finding to JIRA ---> Developer update comment in JIRA --> DefectDojo finding get the comments back in the Notes.. (good, works fine)

Use case 2: DefectDojo replies (notes get added) and ---> JIRA receives comments (Great) ----> But wait, as the JIRA got updated, so the comment comes back and updates it again in DefectDojo..

Master branch 1.6

Activity

  1. zorianix commented on Jun 10, 2020

    @zorianix

    Hi @dayal18 I am trying to set the wehook too , can you let me know if there is some sort of jira version dependency to this, I am running dojo over http and my webhook didnt work at all

  2. dayal18 commented on Jun 10, 2020

    @dayal18
    ContributorAuthor

    @zorianix

    1. Are you able to create JIRA tickets from DDJ to JIRA?
    2. Is your JIRA server able to reach DDJ? Are these on a same network?
    3. Did you follow the Webhook process referenced in the DDJ documentation? and created a webhook in JIRA? don't forget the trailing "/".
    4. Your JIRA team would be able to say is they can communicate with DDJ or not, as they will see status code once the webhook is created.
    5. If, status is 200, Check with your JIRA team on what conditions does the JIRA Webhook is filtered with, and also what permissions (comment, status change) -- Check DDJ docs.

    I don't think running dojo over http would be an issue, if your JIRA is able to talk that's fine. And also there isn't any JIRA dependency I have come across. I guess if you check the steps 1-5 you should be able to figure out the problem.

  3. zorianix commented on Jun 10, 2020

    @zorianix

    Hi @dayal18

    1. Are you able to create JIRA tickets from DDJ to JIRA?
      Yes , that is working fine

    2. Is your JIRA server able to reach DDJ? Are these on a same network?
      Need to verify , they are not on same network

    3. Did you follow the Webhook process referenced in the DDJ documentation? and created a webhook in JIRA? don't forget the trailing "/".
      Yes

    4. Your JIRA team would be able to say is they can communicate with DDJ or not, as they will see status code once the webhook is created.
      Is this in console logs? cause via the Jira UI , there was no error

    5. If, status is 200, Check with your JIRA team on what conditions does the JIRA Webhook is filtered with, and also what permissions (comment, status change) -- Check DDJ docs.
      Can you provide more details for this , I have below configuration
      MicrosoftTeams-image

  4. zorianix commented on Jun 10, 2020

    @zorianix

    Oh yes , I have disable this for time being by purpose

  5. dayal18 commented on Aug 12, 2020

    @dayal18
    ContributorAuthor

    This issue still exist in 1.7.1

    image

  6. dayal18 commented on Aug 12, 2020

    @dayal18
    ContributorAuthor

    I added notes to a finding in DefectDojo.. the notes add a comment in JIRA ticket, but also the comment comes back from JIRA back to DefectDojo

  7. dayal18 commented on Aug 17, 2020

    @dayal18
    ContributorAuthor

    Hi guys, I'm close to fixing this, just want to understand how can I get the username value from the JIRA config:

    get_system_setting. ???

    image

    @cody-m-tibco @Maffooch @mtesauro

  8. Maffooch commented on Aug 17, 2020

    @Maffooch
    Contributor

    There's a Jira Config model that has that information. It is generally attached to a product, or can be queried directly if you have one of the fields in the config. Here is an example of such.

  9. dayal18 commented on Aug 17, 2020

    @dayal18
    ContributorAuthor

    Thanks @Maffooch that worked.. working on PR now.. Thanks again !!

  10. added a commit that references this issue on Aug 17, 2020
  11. dayal18 commented on Aug 17, 2020

    @dayal18
    ContributorAuthor

    #2786 - Fixed

  12. added a commit that references this issue on Aug 21, 2020
  13. added a commit that references this issue on Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions