Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,364,436
Community Members
 
Community Events
168
Community Groups

How to view the tag description on BitBucket?

Edited

When tagging, BitBucket opens a field to add a description to the tag. Where can I view that description after creating the tag?

image.png

 

3 answers

Hello @Renato Lima,

Looks like there's currently indeed no view in Bitbucket UI where you can see tag description after you created it. I'll follow up on this with the team: we might've changed some things around displaying commit metadata in a not very consistent manner.

In a local copy of the repository you can see tags along with their descriptions using the following command:

$ git tag -l -n
tag-name This is tag description

  Let me know if you have any questions.

Cheers,
Daniil

 

To add to Daniil's answer:

The "description" field when adding a tag is equivalent to setting the message on an annotated tag with the command line.  It's identical do running this command ("-a" creates an annotated tag):

git tag -a -m '<tag description>' <tag>

I was not able to see tag descriptions using "git log -l -n".  These commands worked nicely however:

To just see the tag objects themselves:

git for-each-ref --format="%(refname:short) %(taggerdate) %(subject) %(body)" refs/tags

 

To see the tags alongside the commits they refer to:

git show --tags

 

Similar to Daniil I could not find any way to surface this information in the Bitbucket Server UI.

Similar to Daniil I could not find any way to surface this information in the Bitbucket Server UI.

Not sure if you mistakenly mentioned Bitbucket Server, but I indeed can't find tag messages in Server either. Create tag dialog is similar, i.e. it contains an input field for the tag description, but once created that message is not visible anywhere in UI.

Cheers,
Daniil

My mistake - I did not realize this question was tagged with Bitbucket Cloud.

Daniil - are you sure "git log -l -n" can print the annotated tag messages?  I'm not able to make that work in my environment.

This was, in turn, my mistake 😬

I meant git tag -l -n. Will fix it in my answer above. Thanks for surfacing this!

Hi @Daniil Penkin ,

How's it going with displaying the tag description in the Bitbucket Cloud ? Because I still don't see it in the UI yet :( ?

 

Thanks,

Like # people like this

We are also having the same  issue unable to see tag description Bitbucket cloud.

I want to mention that if your description had many lines you will use something like:

git tag -l -n20

Where 20 is for 20 lines of annotation.

 I used this (notice the space between -n and 20)

git tag -l -n 20

and it gave me no results... ha ha!

2 votes

Hello, Atlassian!

Is there a feature roadmap? Is this on it?

2 votes

Hi @Daniil Penkin ,

Issue status on displaying the tag description in the Bitbucket Cloud ? Because I still don't see it in the UI yet :( ?

And, indeed, I still do not see tag descriptions in Bitbucket Server, either. There doesn't appear to be any urgency in fixing this issue.

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events