-
Type:
Suggestion
-
Resolution: Answered
-
None
-
Component/s: None
NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.
Steps to replicate the problem:
- Create a project in JIRA
- Create an Issue related to that Project
- Create a webhook, which will trigger a build in Jenkins. In this webhook, write a JQL query as: * issuekey="AS-1" AND status changed FROM "In Review" TO "Done"* and tick mark the 'updated' checkbox under the Issue heading.
- Create a workflow, (for example like: Create -> InProgress -> InReview -> Done)
- In the transition from InReview to Done, attach the webhook as a post function
- Create a workflow scheme, add the workflow created in above step to this workflow scheme
- Associate this workflow scheme to the project
Now, go to the issue, change the state from InProgress to InReview and then from InReview to Done. Since the webhook is attached to the transition from InReview to Done, this fires the webhook. Again go to the respective issue and change its priority from Low to High, for example or add a comment to the issue. This will fire the webhook. So, basically any update in that issue, fires the webhook. The requirement is to make the webhook fire only when transition changes from InReview to Done and no other event/action.
Now, if you edit the webhook and untick the issue-updated checkbox and then repeat the steps mentioned above (first changing transition from InReview to Done, then updating any field in the issue), the webhook isnt fired.
So basically, we are unable to achieve the requirement, which is to create a webhook which should fire only on one event, i.e. a transition change, and it should not fire on any other action/event/change in the issue.
I couldnt devise a solution for this, even with JQL. Please look into this scenario and acknowledge back if its possible to achieve it in JIRA v6.4.12.
Also you can find attached a bit more detailed document with this post.
Thanks & Regards,
Ashish
- relates to
-
JRACLOUD-59182 Webhook cant be fired, if no event is checked
- Closed