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).
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 :).
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...
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!
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