JIRA AUTOMATION - Link an issue to the trigger issue (but its more complicated than that!)

Darren.Fairweather
Contributor
April 4, 2023

I have project A and Project B.

When a ticket in project A is transitioned to a specific state i would like an issue created in Project B and then this issue issuelinked to the very first trigger issue in Project A.

This sounds simple but putting an "issue links action" after the create action only tries to link the newly created issue in Project B to itself. I did also try "additional fields" JSON but alas this did not work either.

Any help greatly received :)

2 answers

2 accepted

3 votes
Answer accepted
Darren.Fairweather
Contributor
April 4, 2023

Thanks for taking the time Walter - I Actually fixed it seconds after i posted putting JSON in the "Create New Issue" Action.

Screenshot 2023-04-04 at 14.04.34.pngScreenshot 2023-04-04 at 14.04.43.png

Gelila
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!
August 6, 2024

it is giving an error : No issue link type with name 'Parent/Child' found.

Jennifer Bader August 7, 2024

I'm also receiving the same error above, regarding Parent/Child.

I was able to clear the error by copying the code direct from the "documentation" link at the bottom of the Rule Details window. 

But this still isn't creating the link for me.

Gelila
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!
August 8, 2024

Thanks @Darren.Fairweather  that really helped. But i have added

"outwardIssue": {
"key": "{{TriggerIssue.key}}"
}

//Instead of 
"outwardIssue": { "key": "{{issue.key}}" } 

I guess it depends on the specificality of the automation. It is working now

3 votes
Answer accepted
Walter Buggenhout
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 4, 2023

Hi @Darren.Fairweather and welcome to the Community!

Before creating the link, add a branch to your automation rule to ensure that you are creating a link from the newly created issue to the trigger issue. Your rule would look somewhat like this:

Screenshot 2023-04-04 at 14.56.31.png

Also, make sure that the rule's scope is set to at least both projects involved (Project A and Project B).

Hope this helps!

Suggest an answer

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

Atlassian Community Events