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

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,465,201
Community Members
 
Community Events
176
Community Groups

Scheduled event API doesn't auto transition to complete

Edited

Hi, 

We are following API documentation  to create scheduled event in statuspage. 

Call :

curl https://api.statuspage.io/v1/pages/kdk62py2j09h/incidents -H "Authorization: OAuth xxxxxxxx" -X POST -d '{"incident": {"name": "Azure VM Scheduled Events", "status": "scheduled","impact_override": "maintenance","scheduled_for": "2022-12-01T13:30:00.007Z","scheduled_until": "22022-12-01T13:32:00.007Z","scheduled_remind_prior": false,"auto_transition_to_maintenance_state": true,"auto_transition_to_operational_state": true,"scheduled_auto_in_progress": true,"scheduled_auto_completed": true,"auto_transition_deliver_notifications_at_start": true,"auto_transition_deliver_notifications_at_end": true,"metadata": {},"deliver_notifications": false,"auto_tweet_at_beginning": false,"auto_tweet_on_completion": false,"auto_tweet_on_creation": false,"auto_tweet_one_hour_before": false,"backfill_date": "","backfilled": false,"body": "Detected new Azure Scheduled Event - This event is scheduled to start after the time specified","components": {"cjk13vpj0zr8": "under_maintenance"},"component_ids": ["cjk13vpj0zr8"],"scheduled_auto_transition": true}}' --header "Content-Type: application/json" |json_pp

The response of the incident shows its still "in progress" event after "scheduled_until" time has passed. 

curl https://api.statuspage.io/v1/pages/kdk62py2j09h/incidents/l487mmgxc6cl  -H "Authorization: OAuth xxxxxxxx" -X GET | json_pp
{
"auto_transition_deliver_notifications_at_end": true,
"auto_transition_deliver_notifications_at_start": true,
"auto_transition_to_maintenance_state": "true",
"auto_transition_to_operational_state": "true",
"components": [{
"automation_email": "component+d79d5d14-8d27-44a5-b9d7-54eac85da786@notifications.statuspage.io",
"created_at": "2022-12-01T05:04:36Z",
"description": null,
"group": false,
"group_id": null,
"id": "cjk13vpj0zr8",
"name": "NSG",
"only_show_if_degraded": false,
"page_id": "kdk62py2j09h",
"position": 1,
"showcase": true,
"start_date": "2022-12-01",
"status": "under_maintenance",
"updated_at": "2022-12-01T12:49:47Z"
}],
"created_at": "2022-12-01T13:29:52Z",
"id": "l487mmgxc6cl",
"impact": "maintenance",
"impact_override": "maintenance",
"incident_updates": [{
"affected_components": null,
"body": "Scheduled maintenance is currently in progress. We will provide updates as necessary.",
"created_at": "2022-12-01T13:31:42.300Z",
"custom_tweet": null,
"deliver_notifications": true,
"display_at": "2022-12-01T13:31:42.300Z",
"id": "34ncnb4tjr4v",
"incident_id": "l487mmgxc6cl",
"status": "in_progress",
"tweet_id": null,
"twitter_updated_at": null,
"updated_at": "2022-12-01T13:31:42.300Z",
"wants_twitter_update": false
},
{
"affected_components": null,
"body": "Scheduled maintenance is currently in progress. We will provide updates as necessary.",
"created_at": "2022-12-01T13:31:41.698Z",
"custom_tweet": null,
"deliver_notifications": true,
"display_at": "2022-12-01T13:31:41.698Z",
"id": "rrqf0k2b74bb",
"incident_id": "l487mmgxc6cl",
"status": "in_progress",
"tweet_id": null,
"twitter_updated_at": null,
"updated_at": "2022-12-01T13:31:41.698Z",
"wants_twitter_update": false
},
{
"affected_components": [{
"code": "cjk13vpj0zr8",
"name": "NSG",
"new_status": "under_maintenance",
"old_status": "under_maintenance"
}],
"body": "Detected new Azure Scheduled Event - This event is scheduled to start after the time specified in $scheduled_for",
"created_at": "2022-12-01T13:29:53.193Z",
"custom_tweet": null,
"deliver_notifications": false,
"display_at": "2022-12-01T13:29:53.193Z",
"id": "01jy7sbcpfpx",
"incident_id": "l487mmgxc6cl",
"status": "scheduled",
"tweet_id": null,
"twitter_updated_at": null,
"updated_at": "2022-12-01T13:29:53.193Z",
"wants_twitter_update": false
}
],
"metadata": {},
"monitoring_at": null,
"name": "Azure VM Scheduled Events",
"page_id": "kdk62py2j09h",
"postmortem_body": null,
"postmortem_body_last_updated_at": null,
"postmortem_ignored": false,
"postmortem_notified_subscribers": false,
"postmortem_notified_twitter": false,
"postmortem_published_at": null,
"resolved_at": null,
"scheduled_auto_completed": true,
"scheduled_auto_in_progress": true,
"scheduled_for": "2022-12-01T13:30:00Z",
"scheduled_remind_prior": false,
"scheduled_reminded_at": null,
"scheduled_until": "22022-12-01T13:32:00Z",
"shortlink": "https://stspg.io/hnprn36xr63j",
"status": "in_progress",
"updated_at": "2022-12-01T13:31:42Z"
}

 

 

2 answers

0 votes

I have the same issue. Support has opened a bug about this.

0 votes

the scheduled event was supposed to be "Completed" by 13:32 PM UTC however,  the status shows its on COMPLETED 01 DEC 2022 (13:56 UTC)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS

Atlassian Community Events