grafana/oncall

OnCall Shift public api should fill schedule field when informed

U002884 opened this issue · 0 comments

What went wrong?

What went wrong?

What happened:

  • <API_URL>/oncall/api/v1/on_call_shifts/ api didn't fill "schedule" field. I've tried to change "schedule" to "scheduleId : 19" and didn't work too.
    Image
    Image
    Image

What did you expect to happen:

  • <API_URL>/oncall/api/v1/on_call_shifts/O7Q2PTTYKCK76 , to fill the field "schedule" according to bellow print
    Image

How do we reproduce it?

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

How do we reproduce it?

  1. Call <API_URL>/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

1.11.3

Product Area

Other, Schedules

Grafana OnCall Platform?

I use Grafana Cloud

User's Browser?

Google Chrome 16.0.5845.140 (Oficial Build) (arm64)

Anything else to add?

No response