Missed Team ’24? Catch up on announcements here.

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

Using Automation to copy custom field data array to Jira field

thorngje December 10, 2021

I have a custom Insight field ("Watch list") linked to a "Person" object field which can store multiple person objects by Name.  I created an Automation to copy that data to the Request Participants field, however, I get the error 'data was not an array (Watch List)'

My first attempt was:

{
   "fields": {
       "Watch list": {
            "value": "Name"
        }
     }
}

Which obviously was incorrect.  Looking at my test issue json I have:

"customfield_10070": [
            {
                "workspaceId""cf859c60-1a9a-4e0e-849e-82453026d7eb",
                "id""cf859c60-1a9a-4e0e-849e-82453026d7eb:184",
                "objectId""184"
            },
            {
                "workspaceId""cf859c60-1a9a-4e0e-849e-82453026d7eb",
                "id""cf859c60-1a9a-4e0e-849e-82453026d7eb:186",
                "objectId""186"
            },
            {
                "workspaceId""cf859c60-1a9a-4e0e-849e-82453026d7eb",
                "id""cf859c60-1a9a-4e0e-849e-82453026d7eb:187",
                "objectId""187"
            }
I am looking for how I need to format that Edit Issue field for the request participants field for the object names to populate.
edit issue.png
Any help on these would be appreciated.  Thanks!

0 answers

Suggest an answer

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

Atlassian Community Events