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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.