How to Add multiple users to a Custom field when they are tagged in a comment in the Jira Automation.
Hi @Seenivasan K ,
As @Aaron Pavez _ServiceRocket_ said, you need to extract the User from the comment and then add it to the custom field, so the rule is:
I am adding some screenshots of the testing of the rule on my test instance, in my case, I added the users to a field called Approvers:
Hopefully this helps you build your Automation rule.
Regards,
David
Thanks for the reply @David Freitez
Can you please elaborate branching and create variable in this automation, as I am facing Error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Above attached screenshots are my automation, but it adds only one user in the customfield. I want to add multiple users dynamically. @David Freitez @Aaron Pavez _ServiceRocket_
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
To better understand this can you tell us;
- Is the custom field a user picker field?
- A text field?
- A picklist?
Regards
Aaron
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
First, we can use this reply from @Bill Sheboy to extract the ID from the user mentioned in the comment
Then you can add the value using this JSON body:
{ "update": { "userpickerfieldhere": [{ "add": {"accountId":"{{accountvariablehere}}"} }] } }
Now if you want to append, you need to use:
{{fromString}} {{toString}}. More on that here:
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/
That should put you in the right track. Let us know how it goes!
Regards
Aaron
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.