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

Josh Quintus November 13, 2017

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.

2 answers

0 votes
eZet October 12, 2020

@Josh Quintus 

I am currently working on providing this as an Atlassian addon, after having a private version working for the last two years. Would you be interested in testing this feature as it is being developed? It's still in early beta, but it works well for our use case already.

Please contact me if you're interested in helping me test this feature, or just want more information :)

Antonius Ostermann October 13, 2020

@eZet I'd be interesting in testing this. :-) 

eZet October 13, 2020

That's great. If you can contact me at the e-mail below, I will provide more details on how to install/configure it for your instance. :)

mail.png

eZet October 13, 2020

The github application can be installed here: https://github.com/apps/checks-for-jira

0 votes
Thomas Deiler
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 5, 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

Thomas Deiler
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 8, 2018

Dear @Josh Quintus,

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

So long

Thomas

Josh Quintus February 8, 2018

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