Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Brad Miele
Contributor
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
atlassian, likes for trees, atlassian community, social impact, tree planting campaign, community kudos, atlassian giving, environmental impact, sustainability, likes for good, atlassian social responsibility, community challenge

Make every click count—help us plant 50,000 trees! 🌳

Want to make your everyday Community actions directly contribute to reforestation? The Atlassian Community can achieve this goal by liking a post, attending an ACE, sending your peers kudos, and so much more!

Help us plant more trees
AUG Leaders

Atlassian Community Events