Automation that keeps summary of parent task and subtask in syn
Asked by Pauline Hild:

Hi everyone,

I'd like to create an automation rule that changes the summary of an automatically created subtask when the summary of the parent task is changed.

The problem now is that I used a value for the name of the subtask, e.g. {{triggerIssue.summary}} Sample QC and when the summary of the parent task is changed, the summary of the subtask contains just the summary of the parent task but without the "Sample QC".

How can I change my automation rule to prevent this?

Kind regards,

Pauline

![Bildschirmfoto 2022-07-15 um 13.09.08.png](/t5/image/serverpage/image-id/206230i059497795B9E6355/image-dimensions/289x292?v=v2 "Bildschirmfoto 2022-07-15 um 13.09.08.png")![Bildschirmfoto 2022-07-15 um 13.08.51.png](/t5/image/serverpage/image-id/206231i83628A1904648471/image-dimensions/356x423?v=v2 "Bildschirmfoto 2022-07-15 um 13.08.51.png")


Answers:
author: Gaurav
body: Hello [@Pauline Hild](/t5/user/viewprofilepage/user-id/4773022)

For your use case, where you need the text 'Sample QC' always appended to the summary of the sub-task, you will need to update the second rule.

In place of copying the value for Summary, you will need to set it like {{triggerIssue.summary}} Sample QC

Please refer to the below screenshot where the description has been updated with a description from the parent issue along with text before and after it.

Kindly acct the answer if this helps.

Regards,

--GG

![Update Desc.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/206244i254D39D1D6EB095A/image-size/large?v=v2&px=999 "Update Desc.PNG")

comments: author: Pauline Hild
body: Hi Gaurav,

thanks for your answer. Unfortunately, I didn't exactly understand the screenshot you sent. How do I have to set the value?

Kind regards,

Pauline


author: Gaurav
body: Hello [@Pauline Hild](/t5/user/viewprofilepage/user-id/4773022)

Please follow the below steps:

* Click on the 3 dots next to the box below 'Description'.
* This provides the options to select the operations. The options are 'Set Value' and 'Copy From'; select 'Set Value'.
* This creates the text box under 'Description'. Please add '{{triggerIssue.summary}} Sample QC' or the relevant values.
* This will ensure that the appropriate data from the parent issue is copied with the additional text appended and updated to the child issue summary.

Please let me know if this helps.

Regards

--GG

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


author: Pauline Hild
body: Hi Gaurav,

I followed the steps you've described and tested the automation, but it didn't work unfortunately.

I added two screenshots in case this might help to understand what happened:

Screenshot 1: Automatically created subtasks (always "Name of the parent task" + "individual element"

Screenshot 2: I changed the name of the parent task and the individual elements are missing![Bildschirmfoto 2022-07-15 um 18.31.52.png](https://community.atlassian.com/t5/image/serverpage/image-id/206303i69A020444C86E2C2/image-size/large?v=v2&px=999 "Bildschirmfoto 2022-07-15 um 18.31.52.png") ![Bildschirmfoto 2022-07-15 um 18.32.11.png](https://community.atlassian.com/t5/image/serverpage/image-id/206306iB423A56C8BAEA0EB/image-size/large?v=v2&px=999 "Bildschirmfoto 2022-07-15 um 18.32.11.png")


author: Gaurav
body: Hello [@Pauline Hild](/t5/user/viewprofilepage/user-id/4773022)

It would be interesting to see the automation rule configuration. I tried to create a similar rule in a test environment and it worked as expected. The rule screenshot is as below.

I would suggest comparing the configurations and updating if required. Please share your feedback on the same.

Kindly accept the answer if this helps.

Regards,

--GG

![Update Subtask Summary.png](https://community.atlassian.com/t5/image/serverpage/image-id/206368i865C4C1AE9AA8F16/image-size/large?v=v2&px=999 "Update Subtask Summary.png")

![Update Subtask Summary - Test 1.png](https://community.atlassian.com/t5/image/serverpage/image-id/206369i5CCBBF8623ECC7A0/image-size/large?v=v2&px=999 "Update Subtask Summary - Test 1.png")![Update Subtask Summary - Test 2.png](https://community.atlassian.com/t5/image/serverpage/image-id/206370i8FEEBAED73D6D674/image-size/large?v=v2&px=999 "Update Subtask Summary - Test 2.png")


author: Pauline Hild
body: Hi Gaurav,

the rule you've created does exactly what I want my rule to do so I compared the configurations and tried it out again but without success. I have no idea why it doesn't work.

The audit log shows that no action has been performed (screenshot).

![Bildschirmfoto 2022-07-17 um 14.55.29.png](https://community.atlassian.com/t5/image/serverpage/image-id/206381i01477813015E34CF/image-size/large?v=v2&px=999 "Bildschirmfoto 2022-07-17 um 14.55.29.png")


author: Gaurav
body: Hello [@Pauline Hild](/t5/user/viewprofilepage/user-id/4773022)

Kindly share the screenshots for the rule configurations. This would help in identifying the problem.

Regards,

--GG


author: Pauline Hild
body: Hello,

you'll find the rule configurations in the screenshots below.

Regards,

Pauline

![Bildschirmfoto 2022-07-19 um 10.00.26.png](https://community.atlassian.com/t5/image/serverpage/image-id/206684i79BCE1A175EAF3E2/image-dimensions/257x303?v=v2 "Bildschirmfoto 2022-07-19 um 10.00.26.png")![Bildschirmfoto 2022-07-19 um 09.59.59.png](https://community.atlassian.com/t5/image/serverpage/image-id/206685i918E5DB42CFC5EF7/image-size/large?v=v2&px=999 "Bildschirmfoto 2022-07-19 um 09.59.59.png")![Bildschirmfoto 2022-07-19 um 10.00.06.png](https://community.atlassian.com/t5/image/serverpage/image-id/206686iD921BC82BE61AC97/image-size/large?v=v2&px=999 "Bildschirmfoto 2022-07-19 um 10.00.06.png")![Bildschirmfoto 2022-07-19 um 10.00.17.png](https://community.atlassian.com/t5/image/serverpage/image-id/206687i6383196F8562B875/image-size/large?v=v2&px=999 "Bildschirmfoto 2022-07-19 um 10.00.17.png")


author: Gaurav
body: Hello [@Pauline Hild](/t5/user/viewprofilepage/user-id/4773022)

The rule configurations seem okay. Could you please check and share the 'Audit Log' for the rule?

Regards,

--GG


author: Pauline Hild
body: Hi,

I already shared a screenshot of the audit log above. Nothing has changed in the mean time.

Regards,

Pauline


author: Gaurav
body: Hello [@Pauline Hild](/t5/user/viewprofilepage/user-id/4773022)

I probably did not communicate clearly. For a story with sub-tasks, please update the summary which would trigger the automation rule. Kindly share the Audit Log for this new execution.

This would look something like the below screenshot.

Regards,

--GG

![Audit Log.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/206924i94B1C15D084E6CB5/image-size/large?v=v2&px=999 "Audit Log.PNG")


author: Pauline Hild
body: Hi Gaurav,

I think I misunderstood you, I'm sorry.

I created a task and then changed the summary of it which should trigger the rule.

Here's the screenshot of the audit log:

![Bildschirmfoto 2022-07-20 um 09.45.01.png](https://community.atlassian.com/t5/image/serverpage/image-id/206926iF9ABC7A70326C71C/image-dimensions/481x268?v=v2 "Bildschirmfoto 2022-07-20 um 09.45.01.png")


author: Jack Brickey
body: Hi [@Pauline Hild](/t5/user/viewprofilepage/user-id/4773022) , I just did a quick test using {**{triggerissue.summary}} also this** and it worked fine.

comments: author: Jack Brickey
body: I don't quite understand your first image though. Can I see the details of the "then edit issue"?


author: Pauline Hild
body: Hi Jack,

tanks for your answer. The first image is a screenshot from the automation that creates subtasks automatically, I forgot to mention it, sorry.

Here's the screenshot you wanted to see:

![Bildschirmfoto 2022-07-15 um 14.26.18.png](https://community.atlassian.com/t5/image/serverpage/image-id/206243i64128C8E9AD77421/image-dimensions/425x248?v=v2 "Bildschirmfoto 2022-07-15 um 14.26.18.png")


author: Jack Brickey
body: Ok so I expect what may be happening here is that it's a bit of a race condition. What I would suggest doing is to have a separate action to edit the summary field and preface that with a refetch data action. So basically it looks like this...

create subtask

refetch data

update summary


Tags: cloud