Hello everyone,
I created a new automation rule to copy the last comment in any issue into a new custom field called "Last comment" using the following structure:
{
"fields": {
"Last comment" :"{{issue.comments.last.body}}"
}
}
The automation rule works, but randomly the rule copy all the JSON structure in the field instead of only the {{issue.comments.last.body}} text
In the image, you can see three comments, the second one works correctly but the other two also get the whole JSON structure
Thanks in ahead!
@Hender Ruiz , Welcome to the Atlassian Community!
Apparently you are using the 'Additional Fields' section for this.
I believe your automation rule will be more secure if you just use the smartvalue of: {{issue.comment.last.body}} directly in the 'Last comment' field in your automation rule. Select the action 'Edit issue' > Select the field 'Last comment' and insert this smartvalue: {{issue.comment.last.body}}. Have you tried this? Why are you using additional fields section?
I did follow other answers in the community, but using the Smart Value directly does the trick!!! Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.