How to provide URL for linked issue in a Customer-facing comment?

Ashley Honeycutt
Contributor
November 9, 2023

Occasionally we will get a request via JSM that requires support in from a team that works out of a JSW project. (Example: a help desk request comes in and we realized we need support from DevOps to enable the request so we create a task in the project for DevOps and link it to the JSM ticket).

Since customers can't view linked issues from their end, we are using Project Automation to leave a comment that contains a link to the linked issue in the other project. 

I'm having trouble figuring out the smart value needed to post that link. 

Suggestions are greatly appreciated, thank you!

1 answer

0 votes
C_ Derek Fields
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.
November 9, 2023

The smart value for a link is {{issue.url}}. Does that help or did I misunderstand the question.

Ashley Honeycutt
Contributor
November 13, 2023

Hi @C_ Derek Fields

I'm looking for the smart value for the linked issue(s). So if we had a linked issue that relates to the current issue, the url for the linked issue gets posted as a comment.

C_ Derek Fields
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.
November 15, 2023

I don't know of a smart value that will return the list of linked issues for an issue. What I did was to evaluate a Jira expression and use the return value in a comment. This works if there is a single linked issue. If there is more than one linked issue, then you will need to do more work:

The web request is as follows

2023-11-15_13-22-02.jpg

 

Make sure that you click the Delay Execution checkbox or you won't get a result. 

The resulting linked issue key is {{webResponse.body.value.links}}.  You can put this into a markdown so that the comment provides a link to the issue itself:

2023-11-15_13-26-36.jpg

Suggest an answer

Log in or Sign up to answer