Jira Commit Acceptance for Mercurial?

Is there a plugin similar to Jira Commit Acceptance for Mercurial repos? I'd like to ensure that commits contain the JIRA issue key.

2 answers

1 accepted

Commit Policy Plugin verifies the Mercurial commit messages against a JIRA JQL query, which adds a lot of flexibity! Not only it checks if there is a JIRA issue key, but also check its "properties" (type, status, project, etc.).

It works with Mercurial (and Git and Subversion).

See the full documentation and the Mercurial and TortoiseHg specific page.

0 vote
Renjith Pillai Community Champion Nov 16, 2013

If Mercurial support hooks (which I assume yes), you do not really need a add-on to handle this.

Write a small perl/python script which can do a regex on the commit message, and for the matches do a REST call to the JIRA instance with the issue key (use a fixed username/password).

If the call is successful (HTTP 200), then allow the commit. You may also make it more intelligent by parsing the JSON object and seeing if the issue is still in open state :).

Since I don't know either PERL or Python, I would prefer if there was a plugin. It appears the answer is no.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,221 views 14 19
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot