Forums

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

Add parent summary to subtask Summary

Viral Patel June 13, 2023

Hello 

I have an automation where a isssue (Test2) is created a subtask called Legal gets created but i want to code the subtask summary to Legal - Test2)

 

I did try {{issue.parent.epic.summary}} - Legal Review

but when the rule runs it only shows - Legal Review?

Thanks

Viral

 

jql.PNG

3 answers

2 accepted

0 votes
Answer accepted
John Funk
Community Champion
June 13, 2023

Hi Viral,

Try using Legal Review - {{issue.parent.summary}}

Viral Patel June 13, 2023

Hi @John Funk 

Thank you for the quick response!

I tried that buts its the same issue. Please see the images below.

 

jql.PNG jql2.PNG

John Funk
Community Champion
June 13, 2023

Okay - it must be setting that prior to recording the parent. The triggerIssue is actually what I use the most myself. 

And if you want the parent ID,  just use {{triggerIssue.key}}

Viral Patel June 13, 2023

Perfect that worked! thank you so much!

John Funk
Community Champion
June 13, 2023

Awesome - glad that worked!

0 votes
Answer accepted
Walter Buggenhout
Community Champion
June 13, 2023

Hi @Viral Patel,

There is some essential information missing in your screenshot to be 100% sure about how you set up your automation rule, but try this instead to refer to the summary:

{{triggerIssue.summary}} - Legal review

That syntax should inherit the summary from the issue that triggered your automation rule. 

Hope this helps!

Viral Patel June 13, 2023

Hi @Walter Buggenhout 

 

Thank you for the quick response! that worked perfectly!

IF I want to add the parent ID was would be the syntax for that?

Walter Buggenhout
Community Champion
June 13, 2023

You mean the issue key, @Viral Patel? If so:

{{triggerIssue.key}} {{triggerIssue.summary}} - Legal review
0 votes
Benny
Contributor
June 13, 2023

Hello Viral,

You can just use {{issue.summary}}, because the current context is your trigger issue (current issue).

Hope this help.

Suggest an answer

Log in or Sign up to answer