I would like to set a list of values for a smart variable and loop through in my automation. I found documentation of setting list of values to smart variable from list values of a field or from a jql. But is there a way to just define a list of values to a smart variable?
To confirm my understanding of your terminology, what do you mean by "smart variable" and a "list of values"?
Automation rules use smart values to access issue fields and other data available to the rules. For example, here are the ones for issue fields: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/
Some of those smart values could be lists, where the individual elements can be accessed. For example, the Fix Versions field. Here is more information on list handling in rules: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-lists/
Rules also have an action to Create a Variable, for use in a rule for temporary data storage: https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Create-variable
And finally, rules have branches, which allow looping over various things, such as issues, lists, and even created variables: https://support.atlassian.com/cloud-automation/docs/jira-automation-branches/
Putting those things together, I believe you are asking about setting a created variable and then using that to branch over the items. If so, that could be like this:
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.