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

Accepted Answer
0 votes

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


Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Featured Groups

Tuesday tips & tricks: What is the Atlassian Community?

It's officially Tuesday, which means it's officially time for another tip to help you better navigate this space we call the Atlassian Community. 😄 I got a great question from community member, Sa...

140 views 6 8
View post

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