Create link between to issues

I want to create a link between two issues using Automation.

I can't upload a screen shot of the rule for some reason, I hope you can understand this instead:

  1. When: Issue transitioned
  2. If: Issue matches JQL
  3. Then: For parent
  4. Then: Create 1 sub-task
  5. And: Edit issue fields (advanced)

Code in advanced:

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

No link is created. Since I zero coding experience I can't figure out what is wrong. The file says the following:

Unknown fields set during edit. Fields ignored - issuelinks

Maybe the rule is causing this?

1 answer

0 vote
Andreas Knecht Community Champion Feb 26, 2017

Hi Christian,

This error usually means that the 'Linked issues' field is not on the appropriate screen.  To fix this, go to Project administration -> Screens.  Select the 'edit issue' screen and then add the 'Linked issues' field to this screen.

To verify you can simply go to an issue and hit 'Edit' manually - the linked issues field should be present.  If it's not, you can bring up the 'Where is my field?' helper by hitting 'Configure' top right in the edit dialog and then clicking on 'Where is my field?'.  It should look like this:

https://www.dropbox.com/s/7qlgxr9922ra1fl/where-is-my-field.png?dl=0  (for some reason I can't attach the image to answers.atlassian.com right now)

Hope that helps!

Cheers,

  Andreas

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Tuesday in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

118 views 0 4
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you