Fixing Stash Commit Issue Links with Jira

Not sure why but we have intermittent failures of the post-commit hook that creates the bi-directional link between the Stash commit and the Jira issue. The commit msg clearly states the correct issue key but the link is not established. What is the quickest, preferabably end-user-executable, way to retro-actively establish the link?

Less preferable but also helpful would be an admin-level, Git-savvy approach.

1 answer

0 votes

There may be several reasons why the link doesn't show up. To figure out what's going on, could you tell me:

  • Are you seeing links to the JIRA issue on the commit page in Stash (e.g. projects/<project-key>/repos/<repo-name>/commits/<commit-hash>)?
  • Are you seeing links to the Stash commit from the JIRA issue?

If the links are missing on both sides, it's likely that there's an issue with the indexing of commits on the Stash side. If you are seeing the links in Stash but not in JIRA, it could be a permissions issue where the JIRA user doesn't have read access. Alternatively, if the commit only exists in a forked repository, it won't show up on the JIRA issue. See We plan to improve the indexing of forks in a future release, but currently forks are only partially indexed for performance reasons.



Hi Michael,

Thanks for the quick reply. What we're seeing in intermittent. Screen shot show same user, two different commits, both with same issue key, immediately after each other. One gets the link, then next does not.

That sounds like an issue with either the changeset indexing or the git hook on the Stash server. Can you open a Stash support request on https://support.atlassian.comand reference this answers thread? Please upload a support zip (Administration > Support tools) so we can have a look at your logs to find the cause.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

280 views 0 12
Read article

Atlassian User Groups

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!

Find my local user group

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

Groups near you