Prevent GitHub PR merge based on associated JIRA status

Deleted user September 11, 2019

We already have Jira integrated with github, so any mention of Jira ticket in commits links them together. Now we would like to change the mergeability of a PR based on the status of its associated ticket.
I did check out a similar question: https://community.atlassian.com/t5/Bitbucket-questions/Prevent-merge-based-on-JIRA-status/qaq-p/1169454,
but this was about BitBucket.

Is there any "Atlassian" way currently? If not, what are the ways to manually enforce this? Github actions? Webhooks? Please help.

Thanks.

3 answers

1 vote
Eugene Lorman
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 17, 2020

Any resolution on this? Would love to know if you were able to solve this and how.

Deleted user April 18, 2020

No @Eugene Lorman I didn't do anything about it. If you find any plugin for it, let me know.

Eugene Lorman February 4, 2021

We ended up creating a custom github action (3 of them) to help pull in jira labels and treat them as check for a PR. Can probably DM if someone else needs this and is maybe interested in packaging as a single action.

Like Jake Warren likes this
James Sheridan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 1, 2021

@Eugene Lorman would love to see what you created.  Not sure if/how you can DM here, but a reply here might benefit others anyway.

Like Jake Warren likes this
Jake Warren
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 11, 2021

I agree with @James Sheridan@Eugene Lorman , would love to see what you did as we are running into the same issue where this could be the solve for us.  Any way you could share?

Eugene Lorman October 15, 2021

I am working on something that I can publish, stay tuned.

Like Jake Warren likes this
Eugene Lorman October 29, 2021

Created This GitHub Action . Please give it a run and let me know if anything is not as it seems.

0 votes
Eugene Lorman October 25, 2021

Created This GitHub Action . Please give it a run and let me know if anything is not as it seems.

0 votes
Randy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 12, 2019

There is not but what use case do you have where a dev needs to check jira before merging a PR?

Deleted user September 12, 2019

Say the PR branch is deployed to staging and QA does testing on it. We want to ensure that the PR gets merged to master only when the QA marks the ticket as resolved.

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events