Greetings!
I'm trying to edit a specific comment containing a string that only happens if the comment exists - that condition is working.
But when I try to get the right comment id with the following smart values, it does not work in the field for the id, but when I use it in a comment.
{{#comments}}
{{#body.endsWith("String")}}
{{first.id}}
{{/}}
{{/}}
Does anyone has an idea why it does not work and how to make it work?
Hi, this works for me:
{{#issue.comments}}{{#if(exists(body.match(".*(YOUR TEXT).*")))}}{{id}}{{/}}{{/}}
This will retrieve the id of the comment which has YOUR TEXT
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.