How to make Jira number mandatory in the 'Title' of 'Pull Request'?

Raj Goel December 6, 2017

Want that the developers should always specify the Jira number while raising a Pull Request, better if it can be made mandatory in Title of the Pull Request. Are there any rules/configuration available to make it mandatory?

1 answer

0 votes
miikhy
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.
December 7, 2017

Hi Raj,

I think OOTB is not providing that feature but there are hooks which can help. This one for instance is free: 

https://marketplace.atlassian.com/plugins/com.isroot.stash.plugin.yacc/server/overview

It allows you to add a hook to check if commits are linked with a Jira issue (a valid one), you can even restrict with JQL what kind of issues are eligible for that rule.

Hope this helps!

Deleted user October 29, 2019

Hi,

How to install this plugin when using https://bitbucket.org/ ?

Any help on this please.

Suggest an answer

Log in or Sign up to answer