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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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
AUG Leaders

Atlassian Community Events