Can JIRA be integrated with Mercurial without using Fisheye?

I’m configuring a development environment where I plan to use JIRA to manage issues and Mercurial for version control. My goal is to find a method to directly link code commits to relevant JIRA tasks, without resorting to Fisheye or any other commercial solution. Has anyone found an effective way to achieve this integration?

Any advice or alternative approaches would be greatly appreciated.

hey, i managed a hack by using a custom hg commit hook that pushes commit info to jira via its rest api. not perfect but it works for our small team. u might need tweak it according to you enviornment.