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

status of the component can't change when the incident is issued.

choi
Contributor
October 29, 2021

I want to change the status of component when the incident is issued using API.
When I entered below curl command, as I think the incident is issued with mapping component.
but It is not changed the status of component.
I think Perhaps something is wrong with 「-d "incident[${component_id}]=major_outage"

curl https://api.statuspage.io/v1/pages/${page_id}/incidents \
-H "Authorization: ${API_KEY}" \
-X POST \
-d "incident[name]=string" \
-d "incident[status]=string" \
-d "incident[body]=string"
-d "incident[component_ids]=${component_id}" \
-d "incident[${component_id}]=major_outage"

Appreciate any assistance

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
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 29, 2021

You can not just set the status, it is not a field.  Status is an indicator of where an item is in its workflow.  To change the status of an issue, you must tell Jira to transition it from one status to another.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events