How can we auto update the fields of sub-task upon edit of parent issue
Asked by ramnik malik:

Any time when i edit a parent issue, is there way that same field of sub-task gets auto updated.

Thanks!


Answers:
author: Curt Holley
body: You can also do this with a post function on the Create transition of the sub-tasks workflow, using the post function:

|-----------------------------|----------------------------------------------------------------------------------------------------|
| Copy Value From Other Field | Copies the value of one field to another, either within the same issue or from parent to sub-task. |

{#descriptors_table}

comments: author: ramnik malik
body: Hello [@Curt Holley](/t5/user/viewprofilepage/user-id/3527535) - Thanks.

Let me check and try.


author: Bill Sheboy
body: Hi [@ramnik malik](/t5/user/viewprofilepage/user-id/5083794)

What have you tried to solve this need?

If you have created a rule and it is not working as expected, please post images of your complete rule, the audit log details, explain the field types involved, and explain what is not working as expected. Those will provide context for the community to offer suggestions.

If you have not yet started a rule...

There are similar example rules in the templates for a project to do this, and many community posts from which show the answer to this question.

You will also need to clarify your scenario to understand how many rules are needed, and with which triggers. At a minimum, please decide what will happen when:

* a subtask already has a value when the parent field changes
* someone manually changes the subtask value after it was updated to match the parent
* the parent of the issue is changed to a different issue
* the subtask is converted to an issue, and so no longer has that parent
* etc.

Kind regards,  
Bill

comments: author: ramnik malik
body: Thanks Bill.

I am yet to create a rule.

The rule which i wish to create is

1. Condition - Parent and sub-task exists.

1. Parent Issue - When a filed of parent is updated ( I have a list of 4 specific fields for which I want the same value to be passed to sub-task.

2. Update the field of Sub-task with same updated value of Parent issue.


author: Tharaka_Hettiarachchi
body: Hi [@ramnik malik](/t5/user/viewprofilepage/user-id/5083794) ,

You can use Jira Automation to do that.

1. Go to Project Settings -\> Automation -\> Create a rule

2. The rule should triggered when 'Issue Created'

3. IF/Else to check its a sub task

4. Then 'Edit issue'

![Screenshot 2024-04-29 at 16.45.39.png](https://community.atlassian.com/t5/image/serverpage/image-id/321083i93077EC1027F187D/image-size/large?v=v2&px=999 "Screenshot 2024-04-29 at 16.45.39.png")

![Screenshot 2024-04-29 at 16.47.09.png](https://community.atlassian.com/t5/image/serverpage/image-id/321084i021D971D4560BDB4/image-size/large?v=v2&px=999 "Screenshot 2024-04-29 at 16.47.09.png")

You can select the fields you want to update and tap on 3 dots-\> select 'Copy' option

comments: author: ramnik malik
body: Hello [@Tharaka_Hettiarachchi](/t5/user/viewprofilepage/user-id/5038012) - Thanks for your response.

I will try as suggested, however I want to trigger the rule when existing parent is updated and not when created.

The rule which i wish to create is

1. Condition - Parent and sub-task exists.

1. Parent Issue - When a filed of parent is updated ( I have a list of 4 specific fields for which I want the same value to be passed to sub-task.

2. Update the field of Sub-task with same updated value of Parent issue.


author: Tharaka_Hettiarachchi
body: Ok [@ramnik malik](/t5/user/viewprofilepage/user-id/5083794) . You can trigger the rule when 'Issue Updated'


author: ramnik malik
body: [@Tharaka_Hettiarachchi](/t5/user/viewprofilepage/user-id/5038012) - I tried using the "Issue Updated" and

1. Issue Type = "Sub Task" -\> Edit issue ----- Did not work

2. If Sub Task Present --- \> Edit issue - did not work.

I could not find any option which says update Sub-task

On updating the field of parent issue, unable to auto update the same filed of sub-task

Thanks


author: ramnik malik
body: [@Tharaka_Hettiarachchi](/t5/user/viewprofilepage/user-id/5038012) [@Curt Holley](/t5/user/viewprofilepage/user-id/3527535) [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313)

Thank You for your guidance. The problem is resolved now. The solution is

1. Select - When Values Changes for ( Select the fields update of which should trigger this rule and when - Create Issue, Edit Issue, Transition Issue )

2. Under Issue Filed Conditions - Select Issue Type Equals - Story

3. Use Brach Condition for Sub-Tasks

4. Select under Issue Trigger Rule - Edit Issue.

4a. Select the fields the value of which we want to auto update.

4b. Select Copy - Modify the value **From Current Issue to Parent Issue.**

On my system Admin has blocked the screen capture hence written the steps.

Thank You.