Integrating Stash with Jira

We recently moved from svn to git and subsequently configured Stash for our Jira server.

When we were using svn, we had integrated Fisheye with Jira so that we could see commits associated with tickets.

We see something similar now with Stash commits, except that there is no branch information. To find out the related branch we currently have to do the following:

1. Open Jira ticket

2. Select Source tab

3. Click View full commit

4. Copy the commit hash

5. Go to the command line within a local copy of the git repository

6. At a command prompt, type git branch -a --contains

7. Paste the commit hash and press enter

Is there a way we could better configure our set-up for this purpose?

1 answer

Hi there,

Currently Stash does not supports smart commits.

However there is an Improvement Request about that subject:

I suggest you to watch and vote on it to increase its popularity as well as get notified in case any updates occur on the JAC Issue.

Please let me know if you need anything else.


Celso Yoshioka,

A smart commit would not help. I am looking for a list of branches in Stash that contain a commit associated with a jira ticket through reference to the jira id in the commit message.

For example, commit abcd123 has message:

PROJ-1001 Fixed the condition statement

In Stash, this commit is on branches develop and feature1:

$ git branch -r --contains abcd123

I want to see this list of branches in the commit section of the JIRA Source tab or in the commit view of Stash.

One place that has this information for us is our IDE. IntelliJ IDEA has in the details for a commit in the Changes view, along with the hash id, author, date, etc., a field Contained in branches. But, I'd still like to have this information closer to the JIRA ticket.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,731 views 17 21
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