Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Block Pull request merge if fixVersion is blank

Aishwarya Ralladoddi
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 7, 2018

I'm trying to write a script to block a pull request merge for a story/bug for a particular project if fixVersion field is blank. We use Bitbucket v4.9.1 and already have few scripts under script pre-hooks. Is it possible for me to add a script here or should I have the "Custom Merge Check". Can I still use 'mergeRequest.veto' with this version ? 

1 answer

0 votes
Aron Gombas _Midori_
Community Champion
September 9, 2018

You can do this with a merge check policy (using the Commit Policy app).

The policy should contain a JQL condition which uses the JQL query "fixVersion is not empty". That's it.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events