How to enforce a JIRA issue to be referenced in a commit message in Subversion

I have JIRA 5.1.8, Fisheye 2.8 and Subversion 1.7 installed.

I know that through the use of Subversion pre-commit hooks we can enforce, for example, a commit message to contain text.

I'd like to know how to implement a check to ensure that a valid JIRA issue is included in a commit message when checking in an item into the Subversion repository.

2 answers

1 accepted

This widget could not be displayed.
This widget could not be displayed.

Use the Commit Policy Plugin to verify every aspects of your commits:

  • Commit message (minimum length, etc.)
  • The identity of the committer (whether he is an active account in JIRA or in a JIRA group)
  • Issues referenced in the commit message (whether it mentions an in-progress task, for example)
  • Changed files (whether only a specific set of files or file types were committed)

See the documentation

commit-rejected.png

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Published 10 hours ago in Marketplace Apps

The 7 hacks of highly successful automation

...there's anything I've learnt from working, it's that people are lazy! No offense to anyone reading this, but it's true and we can all admit it. The easier you make something for someone, the more...

55 views 0 8
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you