The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Jira Automation: How to add prefix for summary on Subtask Creation.

Omprakash Thamsetty
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 Champions.
May 22, 2022

 

Hi,

 

I am working now on creating subtasks based on one custom field change. I am able to make this work but the problem is troubling adding  "prefix - Summary" on subtask during the creation. 

I tried writting the text as "Jan - {{issue.summary}}"

and "Jan - {{issue.parent.summary}}"

Both did not work. Second one updating the Task summary. But I need it for Subtask. 

 

Any advice?

Thanks,

Om

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Ismael Jimoh
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 Champions.
May 22, 2022

Hi @Omprakash Thamsetty 

Use {{triggerIssue.summary}} for this.

This is explained a bit here: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/

This fires based on if you are using automation to immediately create the sub task.

You can also do a issue created and with JQL check if it is a sub task and if yes use the issue.parent but you will need the exact field you want e.g. {{issue.parent.summary}}

I hope this helps

Omprakash Thamsetty
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 Champions.
May 23, 2022

Hi @Ismael Jimoh I tried smart values but it is updating parent summary, Not the subtask summary.

I used {{issue.parent.summary}} and it is updating parent issue summary. If I use Jan - {{issue.summary}} then it is not updating summary as prefix. It is updating with parent summary only.

automation.PNG

Omprakash Thamsetty
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 Champions.
May 23, 2022

Look like I figured it out. I used most recently created action

 

automation1.PNG

Like Ismael Jimoh likes this
Omprakash Thamsetty
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 Champions.
May 23, 2022

Hi @Ismael Jimoh 

Looks like I don't have the Branch rule/ Related issue option in IF block. I tried Branch rule/Related issue on Main branch but I have added If condition to check some of the field values to trigger create subtask as shown in below pic.

Do you have any idea how I can handle Branch rule/related issues in IF block? Or any otherway I can change the subtask summary which we create in IF block?

automation2.PNG

Ismael Jimoh
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 Champions.
May 24, 2022

Hi @Omprakash Thamsetty 

Unfortunately, certain options can only be performed at certain steps in Automation for Jira. 
When an option isn’t available, it means it isn’t possible.

I don’t have an idea how to get this tow work in your case.

DEPLOYMENT TYPE
SERVER
VERSION
8.13.4
TAGS
AUG Leaders

Atlassian Community Events