Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Using Automation to copy custom field data array to Jira field

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
Community showcase
Published in Jira Service Management

JSM Jira Automation: How to Send SLA Breached Notifications

Hi Everyone, In   this tutorial,  we will show you how you can monitor an SLA, and send notifications before or after the SLA has been breached.   SLA Threshold Trigger The SLA t...

599 views 5 12
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you