grafana / oncall

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

Add ability for users to download a csv report from iCal #2799

Closed eshward23 closed 1 year ago

eshward23 commented 1 year ago

What would you like to see!

Currently, API can be used to pull schedules for all users over a period like a month. It works only for web schedules and not for iCal. More specifically, the endpoint is currently only active for web schedules. It will return HTTP 400 for schedules defined via Terraform or iCal. Related documentation: https://grafana.com/docs/oncall/latest/oncall-api-reference/schedules/#export-a-schedules-final-shifts Customer is using iCal to track shift schedules and unable to pull a report. It is needed for how payments are made to the team and currently using excel script reading the iCal.

Product Area

Schedules

Anything else to add?

No response

github-actions[bot] commented 1 year ago

The current version of Grafana OnCall, at the time this issue was opened, is v1.3.23. If your issue pertains to an older version of Grafana OnCall, please be sure to list it in the PR description. Thank you :smile:!

Matvey-Kuk commented 1 year ago

Hi, thank you for the report! The core team doesn't have it in a backlog, so not sure when it will be implemented. Let's keep it open to see if smb else needs this feature.

Matvey-Kuk commented 1 year ago

Hey, sorry for closing it without the context. With the latest update, this script should work for iCal schedules: https://grafana.com/docs/oncall/latest/oncall-api-reference/schedules/#export-a-schedules-final-shifts