Forums

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

Convert text to list for set in branch

Angel
Contributor
May 15, 2025

Hi 

 

We need get the accountId from a {{fieldChange}} of multiuser picker, I used {{fieldChange.from}} to get this string of the accountId "[12352sdfg, 123424dfg5, 2436fdh]".

Would I convert this string to a list that I can set in branch?  

We have Jira cloud 

Thanks

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 15, 2025

Hi @Angel 

The smart value {{fieldChange.from}} is returning the list of values as text in this case, and you want a list to branch over.

And so text functions are needed to clean-up the value before splitting it back into a list:

{{fieldChange.from.substringBetween("[", "]").split(",").trim}}

Please note well there is a trim function on the end to remove any stray spaces from the original list items.

 

And also...I recommend experimenting to try things and only writing to the audit log rather than updating work items.  This is a good way to quickly learn what is possible and build up your automation knowledge and skills.  And, it will save time rather than writing a community question and waiting for responses.

 

Kind regards,
Bill

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