Blocking GitHub pull request when Jira ticket is not in the correct state

I have the following stages in my workflow:  In progress, in review, in master, in qa.  I want to set up a Status Check in GitHub so that I can only accept a pull request if my ticket is in the In Review stage.  Is there anyway I can accomplish this?  Maybe with triggers?


I already have Jira connected to GitHub.

1 answer

0 votes
Thomas Deiler Community Champion Feb 05, 2018

Dear @Josh Quintus

one way could be to add a webhook to the transition that switches the status to review. This can be a call to a different web server, that does some 'magic'. Probably execute a shell script to call git <command>. Or something different, where Git can look for.

Another way would be to add in github a custom made status check (script), that makes a REST call to Jira, figuring out, if a specific issue is in status review.

So long


Thomas Deiler Community Champion Feb 08, 2018

Dear @Josh Quintus,

you didn't come back, yet. Have you solved your issue meanwhile?

So long


I have not solved this.  I was aware of the option to create a webhook that calls a custom web server that then in turn calls into GitHub to update the pull request, but haven't had the time to write that much custom code for this solution.  

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,197 views 5 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you