How to insert into a comment a link to a certain comment of another issue without using an absolute URL?

Davide Cavestro July 16, 2012

Is there any way to produce a comment with a link to a certain comment for an issue (the same or another) without using the permalink produced through https://confluence.atlassian.com/display/JIRA/Commenting+on+an+Issue#CommentingonanIssue-Linkingtoacomment ?

I guess having a way to say something like [ISSUE-123#comment12] would be more portable in case of jira server relocation.

2 answers

1 accepted

1 vote
Answer accepted
Davide Cavestro October 9, 2012

It is not supported: I've filed a RFE at https://jira.atlassian.com/browse/JRA-28976. Please vote there if you are interested in this feature.

0 votes
Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 16, 2012

Everything starting from /browse/ should be a relative url I guess. But that won't work everywhere and it maybe better to get base URL from configurations or request context and use that.

For example, you can use $request.contextPath/browse/.... in the velocity templates.

Davide Cavestro July 16, 2012

I'm talking in the eyes of the final user... when editing a comment I'd like to write a link to another comment without using an absolute url... but trying to use something like [browse/ISSUE-123?focusedCommentId=2] seems not enough

Jobin Kuruvilla [Adaptavist]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 16, 2012

Yes, it wouldn't work in a comment field. You are missing a "/" in the front but that wouldn't help either in a comment field. It needs absolute url.

Davide Cavestro July 16, 2012

You are right... I tried with both the leading slash and without. No results.

So I've just filed https://jira.atlassian.com/browse/JRA-28976

Suggest an answer

Log in or Sign up to answer