Automation: How to copy over comment history when creating an issue with an automation rule?

Jess Burden April 30, 2021

I have a Jira automation rule which does the following:

When an issue is moved to an escalated workflow status an issue is created on a Kanban board with Description and Summary copied over. 

A link between the two issues/tickets is created. 

I can see how to copy over fields but I cannot work out how to include comment history from the trigger ticket? 

I can add a comment on the new issue using the 'For Linked Issues' component but I cannot work out how to pull the comment data from the original ticket. 

Any advice or guidance is greatly appreciated. 

Thanks so much, 

Jess

1 answer

1 accepted

0 votes
Answer accepted
Fabian Lim
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 30, 2021

Hi Jess,

You need to use the following:

{{triggerIssue}}

Refers to the original issue that triggered the rule; used when you branch the chain. Used with the Related issues condition. All properties available to {{issue}} are also available on this smart value.

This will copy the last comment from the trigger issue:

{{triggerIssue.comments.last.body}}

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

Jess Burden May 4, 2021

Thanks so much this worked a treat! 

Suggest an answer

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

Atlassian Community Events