Add person to Custom field when issue is created

Frida Gustafsson June 11, 2024

Hi,

 

We have a custom field named "Testing responsible" (single-person field).

When an issue is created the reporter should be added to the custom field.

 

I get the following error message: (data was not an array (customfield_11450))

 

I've tried multiple solutions but my latest attempt is shown in the screenshot.2024-06-11 15_04_26-Rule builder - Automation - ERP team - Jira.png

2 answers

0 votes
Frida Gustafsson June 11, 2024

Hm, could you help me write this for advanced field editing?

The "Testing responsible" field isn't an option in the "choose field to set.." and therefore I can't use the function you're showing above.Screenshot 2024-06-11 155301.png

 

 

0 votes
Pillai, Aarthi
Contributor
June 11, 2024

Hey

Can you try to copy the value from Reporter into Testing responsible field?


Here is an example on how to do it

(I am using assignee field, it should work with Testing responsible given it is user select field type)

Screenshot 2024-06-11 at 6.44.25 PM.png

Frida Gustafsson June 11, 2024

See my first answer above :) 

 


I tried the following and now I get SUCCESS in the Audit log (yay) but still no action on the task:

{
"update": {
"Testing responsible": [{
"add": "{{reporter.accountId}}"
}]
}
}

 

Reference: https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Single-user-picker-custom-field

Suggest an answer

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

Atlassian Community Events