Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,296,638
Community Members
 
Community Events
165
Community Groups

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

Edited

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

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

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

327 views 0 10
Join discussion

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