Require Jira Issue Id in SourceTree Commit

Hello,

is there a way to require a (valid) jira issue id in the comment when I commit something with SoureTree to my git repository?

I use SourceTree with Bitbucket and Jira OnDemand.

Ciao!
Stefan

2 answers

1 accepted

0 votes
Accepted answer
Timothy Chin Community Champion Sep 11, 2013

Check this issue out:

https://jira.atlassian.com/browse/SRCTREE-1245

Else, you might just have to create a pre-commit hook.

Validating this on the server-side, using a Git hook, is more secure than doing this in SourceTree, because you probably can't control the settings in every single SourceTree used by your team.

Commit Policy Plugin makes it easy to verify Git commits (commit message, committer, referenced issues, changed files) via JIRA. You can manage commit policies in the web, and apply them to Git (and Mercurial and Subversion) repositories:

commit-policies.png

Thanks for the link, it looks interesting, but we are on the Cloud...

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,544 views 15 21
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