How to connect Mercurial changesets with JIRA tickets using TortoiseHg?

I’m trying to find a way to connect my Mercurial commits to specific tickets in our bug tracker. What I want is some kind of integration that lets me link each changeset to a JIRA issue.

Ideally I’d love to have something like what TortoiseSVN offers - maybe a dropdown menu in TortoiseHg that shows all my assigned tickets when I’m making a commit. Even a simple text field where I can type the ticket number would be helpful.

I’ve looked through the TortoiseHg settings and found some basic message parsing options, but they seem pretty limited. Has anyone found a good solution for this? Are there any extensions or workarounds that make this process smoother?

Right now I’m manually typing ticket numbers in commit messages, but I keep forgetting or making typos. Any suggestions would be great!

checkout the jirahelper extension - its pretty decent for this stuff. you can configure it to automatically format commit messages with ticket refs and it even validates the ticket numbers against your jira instance.

alternatively, i’ve seen some ppl use commit hooks that reject commits without proper ticket format. forces you to remember but can be annoying when ur in a hurry.

In my experience, I’ve tackled this issue by utilizing TortoiseHg’s commit message templates alongside JIRA’s integration features. Setting a custom commit template is crucial; you can format it to include a line like “Issue: [TICKET-NUMBER]” which acts as a reminder when you commit. Additionally, ensure that your JIRA is configured to link to commits based on specific patterns, such as ‘PROJ-123’. While TortoiseHg lacks a built-in dropdown for tickets, maintaining a separate document with active ticket numbers can help minimize errors and streamline your workflow.