Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,456,276
Community Members
 
Community Events
176
Community Groups

Is there any smart value to get Sub-task issue summary??

Hello All,

I want to add sub task summary in a Notification through automation. Do we have any smart values to get the Sub task summary??

2 answers

2 accepted

0 votes
Answer accepted

Hi @Srikanth Vemuluri 

It is unclear what you mean by "in a notification".

To access the summary of a subtask of the trigger issue, there are at least two ways:

  • use the {{issue.subtasks}} list and list filtering to find the one you want, or get all of them with {{#issue.subtasks}}{{summary}}{{^last}}, {{/}}{{/}}
  • use JQL to find the subtask for that parent issue parent = {{triggerIssue.key}} and issueType = subtask

Kind regards,
Bill

Hello @Bill Sheboy 

Actually I want to send a notification email using automation rule. In the subject line of the issue I want to add Summary of the Sub task. 

Seems like it will work. But I have a doubt about this Smart value function - {{#issue.subtasks}}{{summary}}{{^last}}, {{/}}{{/}} what to fill in these {{^last}}, {{/}}{{/}}. Can you please provide example??

That part is to conditionally add a comma separator between the entries, leaving it off for the last subtask.

If you do not want a separator between the subtasks' summaries you may remove that part, leaving only this, with a single space between entries:

{{#issue.subtasks}}{{summary}} {{/}}

To learn more about smart value list handling, please take a look at this documentation:

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-lists/ 

Like Srikanth Vemuluri likes this
0 votes
Answer accepted

Hi @Srikanth Vemuluri 

Can you further elaborate on what you mean by adding a subtask summary "in a notification"? 

Do you want to add a summary to the subtask through a parent issue or do you simply want to retrieve the summary of the subtask? If it's the latter, where do you aim to use this summary once you have retrieved it?

Hello @Hamza Chundrigar 

Thanks for the Quick Response.

I simply want to retrieve summary of the subtask in a Email Subject line in the send email Notification action in the Automations. 

I want subtask summary to reflect in the email subject line. 

You could build out an automation rule that can run and checks for the condition where Issue Type = subtasks

And then use the smart value to return the subtasks issue summary: 

{{issue.summary}}

I'm not exactly aware of how you choose to trigger the action, but I created a simple automation rule that retrieves the summary of a dummy subtask. Your automation rule might vary but here's the gist of it:

Automation Rule

image.png

 

Here's the Result

image 2.png 

 

Best regards,
Hamza

Here's a list of Jira Smart Values that you can use: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/

Hello @Hamza Chundrigar 

Actually my requirement is to Write an automation rule on parent task and then I need a sub task summary in to the parent task. Is it possible to do so??

Suggest an answer

Log in or Sign up to answer