Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to check whether 2 subtasks have the same parent

Martina
Contributor
February 14, 2024

Hey all, I'm building a rule that changes the status of a subtask whenever the status of another subtask changes. Here's the code, but the problem is that there will be multiple subtasks matching the issue summary, since there will be one per task, so I wonder whether you have ideas on how to check whether these 2 subtasks belong to the same parent or task. 

Thanks!

Screenshot 2024-02-14 at 19.45.54.png

2 answers

1 accepted

0 votes
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 15, 2024

Hi @Martina 

Isn't this question a subset of your other one, which has already been resolved:

https://community.atlassian.com/t5/Jira-Software-questions/Trigger-tasks-whenever-a-subtask-s-status-is-changed/qaq-p/2607873

Thanks!

Kind regards,
Bill

0 votes
Uday Kiran Bhaviri
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 14, 2024

You can try {{issue.parent}} value gives the parent details.

 

 

Martina
Contributor
February 16, 2024

thanks!

 

Martina
Contributor
February 16, 2024

FYI I ended up using the flow you can find in Bill's link (in case you or anyone is interested) 

Suggest an answer

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

Atlassian Community Events