How to copy comment made on a ticket to a custom filed and automate it? Edited

In the activity section of JIRA ticket, we have comments, I need to copy and throw the latest comment made on the ticket on to a custom filed which is a multiline text field. 

It has nothing to do with workflow status or screen, I need comments from activity section of the ticket.(i guess its hard to make this happen)

If this is not possible, please suggest a solution either while transitioning through workflow and adding a screen with comments field(this is hard to figure out)

Any help is appreciated.


Thank you

1 answer

1 accepted

0 votes
Accepted answer


I think you do not need to copy a comment. In my opinion better solution would be to write a Scripted field which would show you the last comment. You can do it, for example, with Adaptivist scriptrunner. The code would be something like this for the Scripted field



You can read more about Scripted fields here

And you are not limited to Adaptivist scriptrunner. There are exist other plugins which will let you do scripted fields.

Thank you alexey for sharing your knowledge.


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,547 views 15 21
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you