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
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.