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
Community Members
Community Events
Community Groups

How to copy the comment value to custom field via automation

Hello Team,


I would like to copy the latest comment which is in the ticket to a custom field whenever comment is added can this be done via project automation or with any other add-on?


2 answers

2 votes

Hello @Kavitha_Rani.Sinha,

I am Marlene from codefortynine. 

Your use case is possible with our Jira cloud app Dynamic Custom Fields for Jira. With our app you can use Jira expressions to create computed custom fields. 

As you can see in the screenshot, you can create dynamic custom fields that will show the latest comment. On the right side you have a preview of the field.

This is the expression I used for this field:

issue.comments.length ? issue.comments[issue.comments.length-1].body.plainText : ""


If you have questions or feedback about our app, or if you need help in creating a custom expression, don't hesitate to reach out to us. 

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Jira Software

An update on Jira Software customer feedback – June 2022

Hello Atlassian Community! Feedback from customers like you has helped us shape and improve Jira Software. As Head of Product, Jira Software, I wanted to take this opportunity to share an update on...

5,055 views 18 32
Read article

Atlassian Community Events