I am trying to create an automation as follows:
I've tried {{comment.last.body}}, {{comment.body}}, {{issues.comment.body}}, {{issues.comment.last.body}}. Everything produces nil. How can I retrieve comments using CQL and/or Smart Values?
When using the status changed trigger, the smart values that are populated are:
{{page}}
{{content}}
{{space}}
{{priorContentStatus}}
It would seem the only time the smart values for comments are populated is with the trigger Page commented.
Confluence would use the following for comments.
{{comment}} – Returns all available comment properties
{{comment.url}}
{{comment.id}}
{{comment.body}}
{{comment.author.fullName}}
{{comment.author.publicName}}
{{comment.author.emailAddress}}
{{comment.author.timeZone}}
{{comment.author.accoundId}}
{{comment.dateAdded}}
{{comment.dateLastEdited}}
https://support.atlassian.com/cloud-automation/docs/smart-values-in-confluence-automation/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I used {{comment.body}} and it returns nothing at all - As if there are no comments posted. The same thing for {{comments.last.body}}.
Can you verify if this actually works? If so, why does it not return a value?
More likely, how am I misapplying the smart value?
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.
What does the automation look like before you get to the email part? Are you sure your rule is finding something that would have a comment in scope?
I don't think you are misapplying the smartvalue, my guess is that what is being returned by the automation isn't filling out all the smartvalues you expect.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The rest of the automation is below. The email is received. I've attached the image below, as well.
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.
It would seem the only time the comment smart values are populated are when triggering off the page commented trigger.
I tested it in my instance and can confirm they are empty when trigging off Status changed.
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.