How do I link a sub-task to other sub-tasks that are present in the same issue using Automation?

Siva Tejadheep Veera Boina
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!
June 19, 2024

First I manually trigger a defect and it will create 5 sub-tasks like reproduce, root cause, fix, updates and validate. Now I want to link root cause blocked by reproduce, fix blocked by reproduce, updates blocked by reproduce and validate blocked by reproduce, root cause, fix and updates.

I created a variable for reproduce subtask. I named it as reproducekey and used this '{{createdIssue.key}}' in smart value. I used this reproducekey in link issues. But the subtasks are linking to the parent defect

 

1 answer

0 votes
Hariharan Iyer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 19, 2024

Hi @Siva Tejadheep Veera Boina ,

 

You can use a JSON update statement in "Additional Fields" to set this up. An example JSON to use with reproducekey would be

{
"update": {
"issuelinks": [
{
"add": {
"type": {
"name": "Blocks"
},
"inwardIssue": {
"key": "{{reproducekey}}"
}
}
}
]
}
}

You will have to set up similar variables for rckey, fixkey and updatekey to link in the validate ticket.

 

Hope that helps!

 

~ Hariharan

Suggest an answer

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

Atlassian Community Events