I want to add a custom field which via cURL would be filled with integer numbers, i.e. from an external application, at random times, a number would be filled. Another cURL command will add a new integer 200 and so forth. The custom control might be a Select List.
After filling the field with the values, there is a Jira Automation rule which [when triggered] would iterate through each one of the integers in this custom field and send a web request for each number. That is, for 100 a request which has the number 100 in the webhook URL, for 200 a request which has the number 200 in the webhook URL and so on...
I'm not sure how I may achieve this using smart values and as described here.
Hi Nareg,
I think I see what you are trying to do there. However I don't believe this will be possible to do with automation in Jira Cloud. The main reason is that, while some custom fields in Jira can store an array of values, automation does not have a clear means for you to iterate through those values in a loop so that you could perform some action like send a web request for each value in the array. There is a feature request for this over in https://codebarrel.atlassian.net/browse/AUT-81
There is a corresponding document to the one you posted, over in Lists. It explains that you can use a smart value such as list.get(index) to return a single value or list.join(separator) for printing a list of values. But this is really only useful for the displaying/printing these values into a single action, which is not what I think you are looking for here.
Sorry there does not appear to be a way to do that right now.
Andy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.