cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Jira fields value using array of JSON

lutpiero
Newcomer_

I am using Jira for workflow. 
I want to use array as a value in fields like this:
{{ [ {'name':'Dynatrace Source','id':'ari:cloud:graph::service/xxxxx' }] }}
 I received this error:
"An error occurred: Unable to run validation, wrong fields: 'fieldSetters, 1, value'"

Is there a way to put array of json on Fields value ?

1 REPLY 1

mark_bley
Dynatrace Champion
Dynatrace Champion

Hi @lutpiero ,

that json syntax does not look quite right for a json array.

Have you tried it with something like this:

{
   "fields": 
    [
      {
        "name": "Dynatrace Source 0",
        "id": "ari:cloud:graph::service/xxxxx"
      },
      {
        "name": "Dynatrace Source 1",
        "id": "ari:cloud:graph::service/xxxxx"
      },
      {
        "name": "Dynatrace Source 2",
        "id": "ari:cloud:graph::service/xxxxx"
      }
    ]
}

 BR,

Mark

Featured Posts