Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Automation for Jira: Setting issue links via advanced edit Edited



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:


*"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

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.

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

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

⏰ Day in the life of a Jira Admin!

Hello Community! We thoroughly enjoyed this just-for-fun conversation in the Jira Admin Group about what it's like to be a Jira Admin. For #JiraJuly, our talented designers created these graphics t...

699 views 2 20
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you