Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,300,059
Community Members
 
Community Events
165
Community Groups

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

 

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

0 votes
Ismael Jimoh Community Leader 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

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

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

 

automation1.PNG

Like Ismael Jimoh likes this

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 Community Leader 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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
8.13.4
TAGS
Community showcase
Published in Jira Software

An update on Jira Software customer feedback – June 2022

Hello Atlassian Community! Feedback from customers like you has helped us shape and improve Jira Software. As Head of Product, Jira Software, I wanted to take this opportunity to share an update on...

51 views 1 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you