How do I create an automation rule to automatically link this new issue to an existing issue

Deleted user August 4, 2022

How do I create an automation rule to automatically link this new issue to an existing issue using the issue key?

For instance I have created parent task and when I create an issue from JIRA I want to set a rule to automatically link this new issue to the parent issue using the parent's issue key

right now it only says - link to previous issue, most recently created issue - both dont work for me!

2 answers

1 accepted

0 votes
Answer accepted
Tansu Akdeniz
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 4, 2022

Hi @[deleted] 

Welcome to the community.

Do you want to link parent issue and sub-issue? Because there is parent/subtask connection and you don't need to link them. If you want to link two independent issue, that's ok.

Is new issue created by automation? It could be better if you could share a screenshot.

Deleted user August 4, 2022

hey I create the new issues directly from slack using /jira create

>> creates an issue on my project space >> but I also want to map this to a parent issue as soon as an issue is created

 

Parent issue is already set up on JIRA

Deleted user August 4, 2022

JIRA SCFEENSHOT.png

Deleted user August 4, 2022

Screenshot 2022-08-04 at 2.42.21 PM.png

Deleted user August 4, 2022

So since the ticket of issue type: Reviews is created - I want this new ticket to be automatically linked to the primary ticket on JIRA - FO-28

Tansu Akdeniz
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 4, 2022

Issue created by Slack is also a parent type issue. So, you want to link parent to parent. In order to link an issue created Slack to FO-28 automatically, you can configure the automation as below:

Ekran Resmi 2022-08-04 12.27.15.png

Write FO-28 manually. You can also add condition before linking such as "If Issue Type = Reviews" or "reporter = user123" etc to prevent linking for all newly created issues.

Deleted user August 4, 2022

Screenshot 2022-08-04 at 3.09.34 PM.png

Deleted user August 4, 2022

You see I do not get an option to mannually enter it - thats the problem!

Tansu Akdeniz
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 4, 2022

Yes, there is no option. Just write in keyboard :) It works.

Deleted user August 4, 2022

haha thanks! :) Suggestion to the product team pls! It wasn't super intuitive here! :D

Tansu Akdeniz
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 4, 2022

You are welcome !! Yes, it should be improved for sure.

Btw, could you please accept the answer so others can find the solution easier.

0 votes
Kristine Daniels September 20, 2024

@Tansu Akdeniz , when I follow the instructions above, I am getting an error.  Can you advise?

image.png

 

image.png

SOC2-662 is the trigger Jira so I don't think the problem is that I don't have permission to see it.  I've tried various examples using the advanced edit, but they all result in this same error.

I appreciate any guidance.

Kristine Daniels September 20, 2024

Example of attempt using advanced:
{
"update": {
"issuelinks": [{
"add": {
"type": { "name": "Relates" },
"outwardIssue": { "key": "SOC2-943" }
}
} ]
}
}

Suggest an answer

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

Atlassian Community Events