grafana / oncall

Developer-friendly incident response with brilliant Slack integration
GNU Affero General Public License v3.0
3.55k stars 294 forks source link

OnCall Shift public api should fill schedule field when informed #5209

Closed U002884 closed 1 month ago

U002884 commented 1 month ago

What went wrong?

What happened:

What did you expect to happen:

How do we reproduce it?

  1. Call /oncall/api/v1/on_call_shifts/ with pay as "example" with a valid schedule according to bellow payload

  2. { "team_id": "T3EUAI38V1NLY", "schedule": "SI5IWXQ9ZICE1", "name": "[L1] Rotation", "type": "rolling_users", "start": "2024-10-28T08:00:00", "duration": 86400, "rotation_start": "2024-10-28T08:00:00", "frequency": "daily", "interval": 1, "until": "2024-10-28T12:00:00", "rolling_users": [ [ "URVWJP9QUDG14" ] ], "start_rotation_from_user_index": 0 }

Grafana OnCall Version

Grafana Cloud

Product Area

Schedules, Other

Grafana OnCall Platform?

I use Grafana Cloud

User's Browser?

Google chrome 16.0.5845.140 (Official Build) (arm64)

Anything else to add?

No response