Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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 Apr 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/

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
Community showcase
Published in Jira Service Management

JSM Jira Automation: How to Send SLA Breached Notifications

Hi Everyone, In   this tutorial,  we will show you how you can monitor an SLA, and send notifications before or after the SLA has been breached.   SLA Threshold Trigger The SLA t...

632 views 5 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you