Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Get a list of all jira cases linked between two commits



I was wondering if it was possible to get a list of all JIRA issues that were linked between two different commits. I want to use this information to ensure that we are only releasing commits from JIRA cases that are supposed to be included in the next release (We use a special field to indicate what cases are expected to be in the next release).



1 answer

1 vote

Hello @Ryan Snyder,

This is exactly what Bitbucket Deployments can do for you. They show Jira issues linked to the code since the last deployment.

Hope this helps.


@Daniil Penkin ,

Thank you for the quick response. I will look into Bitbucket Deployments and if it's a good solution for my team. In the meantime, is there a way to do this without switching to use Bitbucket Deployments? We currently use TeamCity for our deployments and a switch to Bitbucket Deploy would be a big jump so I would like an alternative solution if possible.

Thanks again,


Unfortunately, no, there're no other ways at the moment. Such request requires some indexing of issues, which Bitbucket Deployments perform for their needs.

You don't necessarily have to fully migrate to Bitbucket Deployments in your case, it's enough to trigger deployment from Bitbucket Deployments (say, send a webhook or just create a tag which TeamCity will then pick up?).

Let me know if you have any questions.


Thank you, I will see if I can make a POC using Bitbucket Deployments with a web hook. Is there any documentation on using Bitbucket Deployments with a webhook? Anything to point me to the right direction would be greatly appreciated.



Bitbucket Deployments is a feature of Bitbucket Pipelines. Simply speaking, it spins up Docker container from an image you defined, clones your repository into it (optionally), then runs commands you specified. It can contain multiple steps, each step runs in its own Docker container.

Pipelines are triggered automatically on push (commit and/or tag) or manually. You can define different pipelines for different branch and tag patterns as well as for pull requests (this one will run against the "future merged state").

So it is very customisable. Here's a guide on how to write the configuration file for Bitbucket Pipelines.

What I meant for your use case though was just a simple pipeline triggered by whatever you use to trigger a deploy (maybe just manually to try it out) with a script that fires a webhook to TeamCity. I'm not familiar with triggering TC builds but I'm pretty sure it has a listener for webhooks. So something as simple as a curl command should do the trick.

Here's the top level documentation page for Bitbucket Pipelines, including Deployments.

I'm happy to assist you with crafting the config file, feel free to ask questions :)

Hope this helps.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,776 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you