I've read the docs on Webhooks, but it seems like what I want to do - transition.a JIRA issue status from A to B - will require some API calls. Any done this before, and willing to share?
So when a Bitbucket pull request is merged, I want to fire up a web hook that will transition the JIRA ticket status that the PR addressed from "In-Progress" to "Testing" for example. I know how to create the web hook in Bitbucket, just don't know how to perform the action that I want. The ticket is part of the source branch name in the pull request, for example, bugfix/PROJ-1234-fix-login-bug, where PROJ-1234 is the JIRA ticket number. Thanks
Hi @Chris Fouts ,
would you please provide me more information, what you are trying to do?
Am I getting right, that you have Jira cloud and you want to transition some issue from status A to B?
Based on what action this should be done? It is somehow connected to Bitbucket (it is mentioned in tags)? For example after some changes are commited or pull request is merged?
To make triggers work, article says "Ensure that the pull request includes commits that reference the issue (in their commit messages)."
This doesn't always happen for us, and though it's a good practice and I've enforced this before in a different company, I don't want to require it in our current workflow.
Hello @Chris Fouts,
Any luck with this yet. I am trying to do the same with the PR Approved. I am able to create the WebHook but I am struggling with the URL for transitioning the issue.
Your specific problem should be handled by a Workflow Trigger. I tried it and did not have any references to the issue in the commit message. The branch and the PR was created from the issue in Jira. That might have helped. I will do some more testing.
@Chris Fouts It seems like as long as the Jira issue key is present in the branch name Jira will pick it up and display the information in the issue. There are a number of triggers in Jira related to actions in Bitbucket. I would say all but Approved, which is the one I need.
I am on server, it might be different in Cloud.
Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events