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 votes
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
Community showcase
Published Nov 29, 2018 in Marketplace Apps

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,447 views 0 8
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