I have automation to check if the Github pull request is opened as a Draft and not transition the ticket but instead add a comment. I see a single webhook on the Github side but the automation rule runs twice which is adding multiple comments (even with the prevent duplicate checkbox to only add a single comment).
Github webhook:
Rule log
Automation rule:
Ticket
Any ideas on how to prevent this? Thanks!
The solution was to check to make sure you don't have multiple webhooks coming from Github for the same type of hook. When you add a webhook to a specific repository and then one at the organizational level, they both fire causing duplication in Jira.
Hi @jamie ,
couldn‘t find your „pull_request.actions“ in the payload.
Could you also write those values that you are comparing to the the action log?
Furthermore:
Are the compared against string or boolean true?
Best
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
action log:
action: opened. Draft: true
Here is what I am comparing
I think that once it fires, it's working as intended. I guess my question is why are there 2 entries in the Audit Log for the same ticket at the same time when only one Github webhook fired?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ah...I didn‘t notice it‘s writing exactly the same message twice. please appologize 🙏🏼
hmm....that looks really weird indeed. could you please share a screenshot of the audit log? what does the jql look like and what is the result?
Best
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think I figured it out. I added a webhook to the Github test repository while testing and then when I finished, I added the webhook to the org but forgot to remove the test one. So I think the webhook was actually firing twice from Github but I was only looking at one queue. Removed the test one and things look promising. If not, I will grab the screenshots and any else I come across. Thanks for your help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hej @jamie ,
In case the situation you described was the problem could you post your solution as a separate answer and accept your answer so this iasue can be marked as solved and make it easier for other users to find the solution?
Best
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.