Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Add multiple values to Insight object by Jira Automation and web request on API

Fabi
Contributor
June 2, 2022

Hello, i need to create an Insight object trough an automation and add multiple entries to an attribute.

As I know, this can only be done by Insight API and web request.

I got everything running. Connect API, create Object, add single values as attribute,...

But every time I want to add multiple entries for an attribute, i always get an error.

Error 400: was expecting comma to separate Object entries

At first I create a variable which is an array of entriesUnbenannt.JPG

And thats my data for the web request:


{
"objectTypeAttributeId": "1372",
"objectAttributeValues": [
{
"value": "{{BudgetID}}.asJsonObject("value")"
}
]
}

 

I tried this because of this post: https://jira.atlassian.com/browse/JSDCLOUD-9964 

 

Any idea, where the problem is? Thanks for your help

1 answer

1 accepted

0 votes
Answer accepted
Fabi
Contributor
June 24, 2022

the answer is to create an variable like:

{{"Budget-ID [Insight]".Key.asJsonObject("value")}}

 

and use this format in the web request:
{
"objectTypeAttributeId": "1372",
"objectAttributeValues": [{{BudgetID}}]
},

Suggest an answer

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

Atlassian Community Events