How can I update child tasks when parent issue is changed?
Asked by Collin Lemons:

I've created two automations to sync parent/child issues and neither are working. One is set to copy the label field from parent to child on creation of the child: (I know it's currently disabled; it doesn't work when enabled.)

![Auto1.png](https://community.atlassian.com/t5/image/serverpage/image-id/256435i230E704CB41B892A/image-size/large?v=v2&px=999 "Auto1.png")

The other should update an existing child issue when the label field of the parent changes:

![Auto2.png](https://community.atlassian.com/t5/image/serverpage/image-id/256437iAED1CE8BB7211065/image-size/large?v=v2&px=999 "Auto2.png")

What am I doing wrong?


Answers:
author: Michel Neeser
body: Hi [@Collin Lemons](/t5/user/viewprofilepage/user-id/1134828)

For your first use case (copy from parent when child is created), I would try it like this with the COPY action:

![copylabels.png](https://community.atlassian.com/t5/image/serverpage/image-id/256443iB2DEA07706C23B8D/image-size/large?v=v2&px=999 "copylabels.png")

comments: author: Collin Lemons
body: That fixed the creation automation! Thanks so much for the help, Michel!


author: Michel Neeser
body: [@Collin Lemons](/t5/user/viewprofilepage/user-id/1134828) Glad I could help! Please consider accepting the answer, maybe it is helpful for others as well. Thank you!


author: Collin Lemons
body: I absolutely will, Michel: I'm delaying it for fear that when I accept your answer, others will see this post as resolved, and I still have the other automation that still isn't working.


author: Michel Neeser
body: [@Collin Lemons](/t5/user/viewprofilepage/user-id/1134828) I checked the other automation too. The solution provided by [@Himanshi](/t5/user/viewprofilepage/user-id/5188557) works perfectly in general. But what you seem to have is a parent/child relationship on the epic level and not actual subtasks (I think this is what [@Himanshi](/t5/user/viewprofilepage/user-id/5188557) wanted to clarify in the comment below).

So, you basically need to change your automation rule to "For Stories" instead of "For Sub-tasks" like this:

![Automation_-_Jira.png](https://community.atlassian.com/t5/image/serverpage/image-id/256761i65BFF017CB175F9B/image-size/large?v=v2&px=999 "Automation_-_Jira.png")


author: Collin Lemons
body: That did it. Thanks again, Michel!


author: Himanshi
body: Hello [@Collin Lemons](/t5/user/viewprofilepage/user-id/1134828) ,

Welcome to community!  
I have an automation rule setup where I tested the copying the labels from parent to subtask.

I am sharing the snippet for your reference , please try and test . This should work for you :

![Screenshot 2023-05-11 at 1.34.49 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/256438i6512BEC88488CCA4/image-size/large?v=v2&px=999 "Screenshot 2023-05-11 at 1.34.49 AM.png")


author: Collin Lemons
body: Himanshi,

Thanks for the quick response!

I believe I altered my automation to match yours, but I'm afraid it didn't work. When I check the audit log it says "Branch rule / related issues No related issues could be found." The trigger issue has a child issue, though. :(

comments: author: Himanshi
body: Hey [@Collin Lemons](/t5/user/viewprofilepage/user-id/1134828) ,

Can you confirm if the issue is child issue or subtask both have different relation with parent. Would it be possible to share the snippet of the parent issue where the child /subtask issue can be shown.


author: Collin Lemons
body: It is a child issue:

![Auto3.png](https://community.atlassian.com/t5/image/serverpage/image-id/256445i3B3BBCAC1FC5728C/image-size/large?v=v2&px=999 "Auto3.png")


Tags: advanced-roadmaps

automation

cloud