Forums

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

Insight Automation Http Request: How do I PUT an attribute?

Johannes Buverud
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 11, 2018

I want to set a spesific value ("Test") on an attribute (with ID = 147) on all objects that matches the automation rule.

I have tried with

URL: https://jira.mydomain.com/rest/insight/1.0/object/${Key}

Post data:

{
    "attributes": [{
        "objectTypeAttributeId": 147,
        "objectAttributeValues": [{"value": "Test"}]
    }]
}

 This does not work. What is wrong?

1 answer

1 accepted

1 vote
Answer accepted
Johannes Buverud
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 11, 2018

My bad, the syntax was correct, I just used the wrong obejctTypeAttributeID:)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events