Hello,
I inform you via e-mail via Jira. I do this by using automation. What should I change in the code below to sort the comments from newest to oldest?
Kind regards.
<p>
{{#issue.comments}}
<span class="icon icon-person">👤</span> {{author.displayName}} {{created.format("dd/MM/yyyy")}} tarihinde:<br><span class="icon icon-comment">💬</span> {{body}} <br> <br>
{{/}}
</p>
So which part should I replace? Thank you very much for your quick return.
I found it,
When you add .reverse
ex: {{#issue.comments.reverse}} it solved,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Talha Aras,
You can return a list of comments like this:
{{issue.comments.body}}
And reverse the order of comments like this:
{{issue.comments.reverse.body}}
See smart value documentation for more details.
Hope this helps!
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.