Hi, I was able to create a custom field to copy the last comment made on the issue to the field. However I continue to get an error
(Current Status can't exceed 255 characters (customfield_10183))
I am trying to limit the returned value to be the first 200 characters and return a message at the end of the text when it is over 200 characters.
So far I only have this code.
{ "fields": { "Current Status" : "{{comment.body}}" } }
Hi @Susan Cain,
Welcome to Atlassian Community!
You can limit the comment by adding this to the end of it: .abbreviate(200)
This will limit it to the first 200 characters.
Hi @Susan Cain -- Welcome to the Atlassian Community!
Adding to Mikael's suggestion...
Comments may contain special formatting, mentions, etc. If you want to parse that out (such as converting mentions from ID values to display names) consider adding text conversion to your field before abbreviation.
For example:
{{comment.body.text.abbreviate(245)}}
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is what I ended up with. Thank you for your expedient assistance!
{ "fields": { "Current Status" : "{{comment.body.abbreviate(245)}}" } }
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.