Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Copy Select List or User Picker fields from one issue to another via automation’s additional field

Marc Pincince
Contributor
September 29, 2020

I’m copying Select List (single choice) and User Picker (single user) fields from one issue to another issue when the first issue is updated. I’m using the following JSON in automation’s additional fields box:

Select List example:

     "Directorate": {

"value": "{{triggerIssue.fields.directorate.value}}",

"child": { "value" : "{{triggerIssue.fields.directorate.child.value}}"

}

},

User Picker example:

     "Team Lead": { "id": "{{triggerIssue.Team Lead.accountId}}" },

These work fine when the triggerIssue’s field has a value other than None. But when the triggerIssue’s field is cleared using the GUI and sets to None, I get the error, “Option id 'null' is not valid (fieldname),”

How might I overcome this error?

1 answer

1 accepted

0 votes
Answer accepted
Bill Sheboy
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.
October 27, 2020

Hi @Marc Pincince 

Have you tried to use and If/Else structure to check the field for non-empty before the copy attempt?

Best regards,

Bill

Marc Pincince
Contributor
October 30, 2020

Thanks @Bill Sheboy. I did some more digging based on your prompt and found this solution, provided by @Erik Buchholz . It helped me with both this and another problem (basically the same) that I was facing.

Like # people like this

Suggest an answer

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

Atlassian Community Events