Automation for Jira: Setting issue links via advanced edit

Jeffrey Bistrong
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, 2021

error1.png

 

I am getting the above error when trying to set an issue link, using the below code. The reason I am trying to set the issue links via the advanced section, is we are originating all of our tickets through the JSM portal and you cannot set linked issue via the portal, so I have a field where a user can put in the existing issue key. I copied this directly from: https://support.atlassian.com/jira-software-cloud/docs/advanced-field-editing-json/#Advancedfieldediting-JSON--Linkingissues

 

*"A_Relates" refers to the workaround we use in jira so that "Related to" appears at the top in the UI when linking issue

 

 

{"update": {
"issuelinks": [
{
"add": {
"type": {
"name": "A_Relates"
},
"outwardIssue": {
"key": "{{issue.customfield_11581}}"
}
}
}
]
}
}

 

Automation rules - JIRA 2021-07-16 09-44-11.png

1 answer

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 16, 2021

My guess is that the key you've got under outwardissue does not exist, or worse, the smart value is not being interpreted as a valid key.

Jeffrey Bistrong
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, 2021

actuallty got it working, i didnt realize my field was blank..stupid me

Suggest an answer

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

Atlassian Community Events