Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to create a Webhook to trigger a JIRA issue status transition? Edited

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

2 answers

0 votes
Hana Kučerová Community Leader May 19, 2020

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?

Thank you.

@Hana Kučerová  I updated my original post. Thanks

Hana Kučerová Community Leader May 20, 2020

@Chris Fouts Thank you for the clarification.

I would recommend you to use triggers instead of webhooks. Please look at the article and let me know, if the solution is suitable for your use case. This functionality is native and designed for such situations. Thank you.

@Hana Kučerová 

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.

Hana Kučerová Community Leader May 31, 2020

Hi @Chris Fouts

sorry for the late answer.

I tried to find any other way, how to do it, but I didn't succeed. The only possibility I see is to develop custom application for Jira cloud.

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.

Hana Kučerová Community Leader Oct 16, 2020

Hi @Henrik Gerdtsson@Chris Fouts

please look at Automation for Jira application, which is now integrated in Jira Cloud.

There's possibility to do some action (e. g. transition the issue) based on the incoming webhook.

thanks, will take a look.

@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.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket 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...

291 views 2 10
Read article

Community Events

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

Events near you