Display comment ID

Brett Bendickson May 16, 2012

Is it possible to display comment ID's on an issue page? Either the internal comment ID (ex: 212211) or a unique ID relative to each issue.

The use case is when referring to a specific previous comment. Currently we refer to them as "Referring to the comment from [user] on [date]", but that's cumbersome and not always specific enough. It would be ideal to be able to say "This comment superceded #4.".

3 answers

1 accepted

0 votes
Answer accepted
Roman Kuznetsov April 27, 2013

Hi, Brett

You can change the template for comments here

WEB-INF\classes\templates\plugins\jira\issuetabpanels\comment.vm

Find the line:

<div class="action-details">#actionDetailsBody($action $i18n "verbose")</div>

and insert ${action.comment.id}. Something like this:

<div class="action-details">#actionDetailsBody($action $i18n "verbose")<span>#${action.comment.id}</span></div>

Here's the result

Comment ID

Cheers

0 votes
Vincent Wei March 29, 2016

We are using a hosted solution at atlassian. What should we do to display Comment ID in a bug?

Adam Meyers July 3, 2018

I'd love to be able to show comment ID on our hosted solution as well.  Don't see a way currently..

0 votes
IT April 10, 2013

I am also interested in the answer to this question. Anybody?

jredel December 16, 2022

I filed a feature request with the team, here: https://jira.atlassian.com/browse/JRACLOUD-80242. Please vote up!

Suggest an answer

Log in or Sign up to answer