Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Prevent merge based on JIRA status?

Dwayne King
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!
September 3, 2019

I'm trying to implement a rule in BitBucket that will prevent people from Merging their change unless the associated JIRA ticket is in a particular status.

Background: our workflow looks something like Open --> Resolved --> Validated --> Closed

So I want to make sure that the reviewers approve (automatic with BB) but also that the ticket is Validated before they are able to merge in their code.

I found this post that is *kinda* the same: https://community.atlassian.com/t5/Bitbucket-questions/Extended-Merge-Checks-in-Bitbucket/qaq-p/931983

but requires a plugin.  Is there any native way to do this, given that it's full Atlassian stack?  Do I need a webhook?

1 answer

1 accepted

0 votes
Answer accepted
Julius Davies _bit-booster_com_
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 4, 2019

 

I don't think there's any way to do this out-of-the-box with either Bitbucket Server or Bitbucket Cloud.  (Are you on Bitbucket Cloud or Bitbucket Server?)

If you're on Bitbucket Server one of the things our free plugin (Control Freak) does is exactly this:

 

cf.png

Eugene Lorman October 29, 2021

Created This GitHub Action to allow labels to stop github merges. Please give it a run and let me know if anything is not as it seems.

sreeram.anikodemahadevan April 23, 2024

@Julius Davies _bit-booster_com_  you mentioned its free, but bitbucket was showing me i had only 1-month trial and then it expires/will-be-charged. Can you confirm please

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events