This page is about transitioning issues in the  issue tracker. If you have  integrated with JIRA Software, then you can use Smart Commits instead.

can resolve  tickets automatically when people push updates to your  repository.  They can specify commands and issues in commit messages, like this:

hg commit -m "fixes #6, resolve ticket #5 and see ticket #9 and ticket #5 in the tracker"

On Bitbucket, the commit message appears with links to each issue:

When you transition an issue with a commit message, the system cross-references the commit from the issue:

Including Issues in a Commit Message