Setting up Mercurial integration with JIRA version 6.1.7

I’m trying to connect my Mercurial repository to JIRA version 6.1.7 but facing some challenges. I’ve looked into a few options and ran into issues:

  • Fisheye integration - This method doesn’t seem to work for my setup.
  • Mercurial plugin - The plugin isn’t compatible with JIRA 6.1.7.

Has anyone been able to successfully combine these two tools? I want to link my Mercurial commits to JIRA tasks. What are some effective methods to do this integration? I would really appreciate any solutions or different methods you can suggest.

Had this exact problem two years ago with the same JIRA version. Fixed it with a simple webhook setup on the server side. Configure Mercurial to hit JIRA’s API endpoints when commits happen. Parse your commit messages for issue numbers, then POST to update those issues. I built a small Python script that sits between Mercurial and JIRA - catches commit data, pulls out issue references, pushes updates straight to JIRA. No plugins needed. Takes about an hour to set up but it’s been bulletproof since. Best part? No plugin compatibility headaches.

Honestly, just use Mercurial’s web interface and drop JIRA ticket numbers in your commit messages. Set up a cron job that scrapes the hg web logs for those ticket numbers and updates JIRA automatically. It’s hacky but works great with older JIRA versions. Saved me way more time than wrestling with buggy plugins.

I’ve dealt with this on JIRA 6.1.7 too. Skip the plugins and use Mercurial commit hooks instead. Set up a changegroup hook to hit JIRA’s REST API whenever you push commits. The hook pulls issue keys from your commit messages and drops comments on the right tickets automatically. You’ll need to write some scripts, but you get way more control over what gets sent to JIRA. The 6.1.7 REST API handles this setup just fine and you won’t run into plugin compatibility headaches down the road.

This topic was automatically closed 4 days after the last reply. New replies are no longer allowed.