Forums

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

Is there a way to get smart values to print child issues in email?

Tom Mina-Coull June 27, 2023

I am setting up an automation to send an automated email. The trigger is an epic being transitioned to Done. Is there a way to get smart values to print a list of the child issues under that epic as part of the email?

I would assume it would be something along the lines of {{issue.child.summary.,}} (with the comma being potentially the signifier of the separator in the list). I know there is {{issue.epic}} for going the opposite direction.

3 answers

1 accepted

2 votes
Answer accepted
Trudy Claspill
Community Champion
June 27, 2023

Hello @Tom Mina-Coull 

I have never heard of a "child" attribute on the issue smart value.

You could use the Lookup Issues action to get all the child issues of the Epic. The example shows how you can list out each issue in the results within an email.

Tom Mina-Coull June 28, 2023

Hi @Trudy Claspill 

This seems like it would be the correct approach, but I am also somewhat new to Jira. From my understanding, you still have to give the lookup function a smart value to lookup, no? 

The example shown on your link is {{#lookupIssues}} * {{key}} {{/}} where key is still a value that is used in many smart values. How do I get it to pull the child issues of the epic in question? Do I have to create some sort of log?

Trudy Claspill
Community Champion
June 28, 2023

The example text shown is how you would print the list of issues that result from the Lookup Issues action.

The Lookup Issues action takes a JQL as the command for looking up issues. You can use smart values in the JQL in an automation rule. To find the child issues of a given epic the JQL should be

Parent = {{issue.key}}

(Atlassian is making changes to unify all project types to use Parent as the field in a "child" issue for noting its "parent" issue. This is a move away from using either Epic Link or Parent Link. The change may still be rolling out to your instance. See this for more information. If the change has not rolled out to your system yet you may need to use either Epic Link or Parent Link instead of Parent.)

Screen Shot 2023-06-28 at 9.39.20 AM.png

Like Chris Doyle likes this
Tom Mina-Coull June 29, 2023

@Trudy Claspill thank you. This helped a lot!

Like Trudy Claspill likes this
1 vote
Yael Bichovsky February 6, 2024

I'm not sure if that's what you meant but assuming you have a cascading field you want to show, that's what worked for me (field name "TCode" for example)

{{issue.TCode.value}}, {{issue.TCode.child.value}}

So it shows the parent value and the child value.

1 vote
Kathy Hart
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.
June 27, 2023

Have you tried it without the period and comma at the end? 

{{issue.child.summary}}

That may produce what you want. 

Tom Mina-Coull June 28, 2023

Unfortunately not. Jira doesn't recognise the child attribute.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events