Hello!
Is there a sort of count() feature available in Jira when creating an automated rule for a multiselect field?
For context, we have a field for locations. If the ticket author only selects 1 location, we want a unique comment to be added, but if it's more than 1 (or doesn't equal 1) we want a different message. However, I haven't been able to find any type of information around counts.
Thanks!
Hi @Drew Carrington -- Welcome to the Atlassian Community!
Your multiselect field is a list field, and so you may use {{issue.myfield.size}} to get the count of selected items in an automation rule. Please see this documentation for more information:
If the field could be empty (none selected) please consider adding a default value as well:
{{issue.myfield.size|0}}
Best regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.