Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

I am trying to copy down the Request participants down to another field

Scott Schellhardt
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.
August 5, 2024

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
Screenshot 2024-08-05 at 12.02.07 PM.png

1 answer

1 accepted

2 votes
Answer accepted
William Calesco
Contributor
August 5, 2024

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

Screenshot 2024-08-05 at 13-45-51 ISMS-1 Preciso de um novo telefone - Jira.png

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.



Screenshot 2024-08-05 at 13-44-33 Rule builder - Automation - IT SERVICE MANAGEMENT SHOWCASE - Jira.png

3 - After running it:

Screenshot 2024-08-05 at 13-51-00 ISMS-1 Preciso de um novo telefone - Jira.png

Scott Schellhardt
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.
August 5, 2024

@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 ? 

 

William Calesco
Contributor
August 9, 2024

@Scott Schellhardt 

If both fields are `Multi user select` then do this:

Rule-builder-Automation-IT-SERVICE-MANAGEMENT-SHOWCASE-Jira.png

 

Here I am capturing all users from 'Approvers' and adding them to 'Request Participants'

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events