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 vote

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 https://jira.atlassian.com/browse/STASH-3403and https://jira.atlassian.com/browse/STASH-4541. We plan to improve the indexing of forks in a future release, but currently forks are only partially indexed for performance reasons.

Cheers,

Michael

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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

2,044 views 1 5
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