Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Displaying a linked issue as a name not the link to the issue

Ste404
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.
May 1, 2023

Hi there,

I have some issue level security setup and just wanted to display the key of a linked issue as a string and not the link in a comment.

Currently I have this in an automation;

a lookup issue - issue in linkedIssues("{{issue.key}}")

I then add a comment with this

{{#lookupIssues}}{{key}} {{/}} was added as a linked issue.

But that shows the link which can't be clicked on if the person doesn't have the right security level for the linked issue.

I just want to display the name SL-1023 as opposed to the link.

I tried key.name, key.displayname, key.label for the comment part but none of them work.

Is what I am trying to do possible.

 

 

2 answers

0 votes
Rudy Holtkamp
Contributor
December 19, 2024

Hi all,

A workaround that I use is to split the issue key in the project name and the id number with:

{{triggerissue.key.subStringBefore("-")}} - {{triggerissue.key.subStringAfter("-")}}

This means that:

ABC-123 will become ABC - 123

Note that you can remove one of the spaces before or after the hyphen (-), but not both otherwise you end up with a link again.

0 votes
Dan Breyen
Community Champion
May 2, 2023

Hi Steven, I asked a similar question to Support and here's what I got back: "I understood that when you are adding an issue key to a comment it will automatically change to an inline link, is it right? If so, unfortunately, at this time this is the expected behavior."
"However, as a workaround for this issue, you can modify your personal settings to display the links as per your preference. To reach this follow the steps below: 

From the top right of your screen, select Your profile and settings > Manage Account.

Select Link Preferences > Under Default display.

Select the "Set default display for new links" dropdown > Then choose the Display URL option or the other display link that you prefer.

Since this is a personal setting this won't affect how the links display for your customers in the portal.

Also, another alternative is to click on the link and manually change the display option to URL, so when you mention an issue key the link will show fewer details about the issue.

In order to set up a default option to display the links in the comments and descriptions we do have an open feature request, for this matter, being tracked here:"

JRACLOUD-76619 

I would suggest voting for that ticket.

Ste404
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.
May 2, 2023

ah that is annoying but make sense if that is by design.

Do you have a link to that ticket, it just came through as text.

Like Matt Dixon likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events