Forums

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

Copy subtask summary to custom field in parent issue

Goli, Raja April 2, 2025

 

I would like to copy one of the subtask summary to a custom field in the parent issue.

Example Subtask Summaries:

Subtask1 Summary - STask123 Testing

Subtask2 Summary - STask456 Automation

Subtask3 Summary - STask789 Result

When the story status change to "Done", I want to copy the subtask summary "STask789 Result" to custom field in parent issue.

Jira Automation rule, I was able to lookup for a subtask which contains summary as "STask789" and created a custom variable to save the summary. Since I created the custom variable inside the FOR look I am not able to access outside of it. How can I achieve it?

3 answers

1 accepted

0 votes
Answer accepted
Goli, Raja April 7, 2025

I followed the Atlassian document and able to get the summary of the subtask using below smart variable.

Hope it will help

{{#issue.subtasks}} {{summary.substringBetween("Subtask3 Summary","-")}} {{/}}

0 votes
Mohanraj Thangamuthu
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 2, 2025

Hello, Good day. You could apply similar login as shown in the screenshot.

Screenshot 2025-04-03 at 10.40.05 AM.png

Goli, Raja April 3, 2025

I tried something similar but unable to get the subtask summary in the custom variable {{subtask}}. 

J1.jpg J2.jpg

Mohanraj Thangamuthu
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 3, 2025

Hello, Good day. may I know what has been specified in the "Edit issue action" under the parent branch?

0 votes
Vishal Biyani
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 2, 2025

@Goli, Raja 

Can you share the screen shot of the automation rule that you have?

 

Goli, Raja April 7, 2025 edited

I got it with smart variables

Suggest an answer

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

Atlassian Community Events