Good afternoon! I hope everyone is doing well.
I have tried this:
{{#issue.comments}}{{^internal}}{{last}}{{body}}{{/internal}}{{/issue.comments}}
but it returns all non-internal comments, whereas I only need the last one.
Hi @Hais_ Pedro
I do not believe the list conditionals and blocks can be merged that way.
A workaround might be to first filter on internal, saving the results in a variable with a delimiter; split() with the delimiter back into a list and grab the last entry:
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.
Just to confirm, did that solve the question?
If so, please consider marking this question as "answered" to help others with a similar need find solutions faster. 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.