Forums

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

How to reference a summary of trigger Sub-Task in Jira Automation rule?

Alex K December 21, 2022

Hello,

 

My use case is sort of unique, since i never saw any discussion regarding that:

Business Rules:

1. We have 2 subtask issue-types available (lets call them: SType1 and SType 2) for the standard issues in a project

2. SType1 is always created manually by testers

3. Automation rule:
- When SType1 is created
- Create SType2 for the same parent
- Set Summary of Stype2 as (VERIFY - Summary SType1) we use this lane for a summary -- {{issue.fields.summary}}

 

Everything works correctly, however smart value always picks summary of a parent issue and not the trigger issue. 

Please let me know if anyone has encountered this before. We need to reference a summary of a subtask that triggered the rule and not a parent issue.

 

Screen Shot 2022-12-21 at 2.44.43 PM.png

Thanks in advance,

Alex

2 answers

2 accepted

3 votes
Answer accepted
Trudy Claspill
Community Champion
December 21, 2022

{{issue}} always refers to the current issue within a branch when you are in a branch. Since you used a branch to access the parent issue, {{issue}} refers to that parent issue.

If you want to access data from the trigger issue, use {{triggerIssue}} 

{{triggerIssue.fields.summary}}
Alex K December 22, 2022

Thanks Trudy! Your solution worked as well!

1 vote
Answer accepted
Fernando Eugênio da Silva
Community Champion
December 21, 2022

@Alex K ,

Please, try to use this: {{triggerIssue.summary}}

 

It works!

 

Regards,

Fernando

Alex K December 22, 2022

Thanks Fernando, this one worked!

Suggest an answer

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

Atlassian Community Events