Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

how do I iterate over a custom field that is an array in automation?

Brad Miele September 29, 2023

I am trying to create a slack channel and add various users to it. Everything is in the ticket.

A custom field called "squad" contains a list of jira account ids added via a user lookup.

My automation currently creates a slack channel via slack web api and assigns ownership to the ticket assignee using properties I have added to the users, ie: {{issue.assignee.properties.metadata.slack_id}}

Then I lookup the channel id in slack that I just created by using an azure function to search the channel name,  

Next I need to take the squad smartvalue and for every account, grab the slack id and call the slack api to have the user added to the channel as well. 

I thought that the way to do this was with branching, but the value that is getting sent still looks like this: "slack-id": "U0XXXX8KDA5, U0XXXXNLNDR, etc".

Is there a way to accomplish this in automation without creating another function?

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events