Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How can we auto update the fields of sub-task upon edit of parent issue

ramnik malik April 29, 2024

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

Thanks!

3 answers

0 votes
Curt Holley
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 29, 2024

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.
ramnik malik April 30, 2024

Hello @Curt Holley - Thanks. 

Let me check and try. 

0 votes
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.
April 29, 2024

Hi @ramnik malik 

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

ramnik malik April 30, 2024

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. 

0 votes
Tharaka_Hettiarachchi
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.
April 29, 2024

Hi @ramnik malik ,

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

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

ramnik malik April 30, 2024

Hello @Tharaka_Hettiarachchi - 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. 

Tharaka_Hettiarachchi
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.
May 1, 2024

Ok @ramnik malik . You can trigger the rule when 'Issue Updated' 

ramnik malik May 2, 2024

@Tharaka_Hettiarachchi - 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

 

ramnik malik May 3, 2024

@Tharaka_Hettiarachchi @Curt Holley @Bill Sheboy 

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.

 

Like Tharaka_Hettiarachchi likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events