Forums

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

How to find the key of a linked task?

Frolov Vladimir
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 3, 2021

In Cloud Jira, I am using a scriptrunner. In order to display linked tasks in the key field, you need to write the code below. However, I don't understand how one can find out the keys for a specific links. Because line 5 should have something like "def return = response.body.fields.issuelinks('linkname').inwardIssue.key".

def issueKey = issue.key
def response = get('/rest/api/3/issue/'+issueKey)
.header('Content-Type', 'application/json')
.asObject(Map)
.body
def return = response.body.fields.issuelinks*.inwardIssue.key

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events