Forums

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

How to copy the comment value to custom field via automation

Kavitha_Rani.Sinha August 15, 2022

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?

Thanks!

2 answers

2 votes
Marlene Kegel - codefortynine
Atlassian Partner
August 16, 2022

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 : ""

dynamic-custom-fields-jira_latest-comment-expression.png

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. 

2 votes
Thuan, Do Dang
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 15, 2022

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