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

Can you add two components to the field in a post function

Ron Campbell February 15, 2024

While working on a transition I want to use a post function to figure out two different component values that I want to add to the component field at the same time. One part is where I look at specific answers in the form and add that component. After that the post function looks for a region and adds that component to the field as well. This errors out when I tried to put it as an arraylist return. Any thoughts? 

1 answer

0 votes
Kalyan Sattaluri
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.
February 15, 2024

Are you trying this through automation or through your own script?

Please review:

https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/

 

If you are passing it as below, it will not work.

"components" : [ { "Active Directory"} , { "Network Switch" } ]

 

You need to pass it as below:

"components" : [ { "name": "Active Directory"} , { "name": "Network Switch" } ]

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events