Create
cancel
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

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

 

1 answer

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!

Suggest an answer

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

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

117 views 2 4
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