Objective: To iterate the comments of the triggered issue then retrieve the body of the comment that was edited the most recently.
This was so far what I could get, and it's stuck because I have no idea how to reference independent smart value inside the list iteration.
{{#issue.comments}}
{{ if(equals({{issue.comments.updated.last}}, updated), body) }}
{{/}}
Then this fails because it's not using the proper syntax, especially "{{issue.comments.updated.last}}."
How can I achieve the goal to allow this iteration to check every comments' last updated datetime with {{issue.comments.updated.last}} smart value to populate the body of the comment with the most recent updated time?
Hello, this is the json structure of a comment:
its smart value {{issue.comments.updated.last}} always returns the comment's update date there in the json structure, here are some examples:
{{issue.comments.body.last}} returns the body of the last comment
{{issue.comments.created.last}} returns the creation date of the last comment
{{issue.comments.author.displayName.last}} returns the display name of the author of the last comment
{{issue.comments.author.emailAddress.last}} returns the email address of the author of the last comment
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.