stash API tag specific commit Edited

I want to mirror actions of following commands

git tag build_123 

git push --tags

I am using this article

Specifically POST method in 


I am able to create a tag with this POST request, but it DOES NOT map itself to specific commit. It means that when I go to{projectKey}/repos/{repositorySlug}/commits

I don't see my tag in the list on the right in the list of commits.


Let me emphasise, that the only difference between pure git commands and API call is the fact that the tag doesn't appear on the right in UI for the last commit. Everything else seems to be the same. 

But I want the tag to appear in the corresponding commit. How do I do that?



The tag, created by API call, seems to appear in the UI, if I create additional tag with git.


The steps to reproduce:

1. call API POST from above

2. look at UI, see there is no tag in the list

3. create a new tag and push it with git commands (above)

4. observe 2 new tags for the last commits in UI (one from API, one form git)


How do I make it behave correctly? i.e. to show my tag after API call (without typing git commands)


1 answer

1 accepted

0 vote
Jeff Thomas Atlassian Team Sep 25, 2017

Hi Vladimir,

Can you confirm which version of Stash that you're running? Based on the description and workaround that you found (creating a new tag via Git), I believe you're running into the bug described at BSERV-7658 - Annotated tags pushed to specific commits from REST API do not show in the UI Commits Page.

This affects version 3.10 up to 4.4 where it was fixed. 

Hi Jeff,

Looks like you're right. My version falls exactly between these numbers. Thanks for the help!

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

24,014 views 26 12
Join discussion

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