Good day
I am trying to set up automation that updates a custom field, but only on the first comment.
Any help would be much appreciated.
Thanks
scriptrunner provides a JQL function to get issues with a given number of comments
issuefunction in hasComments()
https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html#_hascomments
With this you can set a condition in automation (in case you are using it)
also it could be possible to access the number of comments via smart values for automation.
something like {{fields.comments.size}} and use it as a condition comparing the value with 0 (not checked, just guessing)
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.
Hi
Did you try {{issue.comments.size}}?
More info you can find here: https://docs.automationforjira.com/reference/smart-values.html#issue-comments
Below example how you can use it:
Regards,
Seba
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.