Missed Team ’24? Catch up on announcements here.

×
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 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-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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