Heres the context:
Essentially I am trying to copy down the Request participants field to a single user select custom field within the same ticket.
When the rule is run, it comes back successful however the data does not copy.
I am using JSON to do this, is something wrong with my code ?
TIA
Hi Scott,
Firstly, you are trying to copy multiple values to a single value field, which won't work.
You need to select one object of that array, even if you have only one.
Here is how you do it:
1 - In the image below, I have 2 values for the req participants field
2 - In your automation, you need to make sure you are selecting only one value for that field, in my case I would like to pick the first value (automation for jira) and copy it to the 'reporter' field (single select user field), for that I use 'customfield_value.first' ..
You can also use .last or .get() to define which one you want.
3 - After running it:
@William Calesco Now to clarify further, say I were to make the Req participants copy field a multi user select, how would I define that I want to be able to add all members of the request participants field to the copy field ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Scott Schellhardt
If both fields are `Multi user select` then do this:
Here I am capturing all users from 'Approvers' and adding them to 'Request Participants'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.