Forums

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

Copy the Linked Issue Url to the comment field if it equals value X.

ChrisR
Contributor
April 9, 2020

We are looking for a scripting way to take the current issue, get the Linked Issue URL and copy that to the Comment field.

Example use case:

An issue is Closed as a Duplicate of another ticket. User determines that the issue needs to reopen because the duplicate issue was not a duplicate and did not fix the issue.

So user reopens the ticket, we want the script to grab the link and copy it to the comment field and then clear the link field.

I've searched and searched but can not make this work. I can get the condition like:

 issue.getAsString("Resolution") == "Duplicate"

and I'm trying to print out something like:

<% "The Linked issue did not solve this duplicate issue:"  issue.getFieldById("issuelinks-issues") %>

 

0 answers

Suggest an answer

Log in or Sign up to answer