2

Is there a way to query Work Schedules in the API?

Hi,

I'd like to be able to query the Work Schedules through the API. I noticed there is a WorkDayRule entity, but it seems I can't query for them.

Is there a way to query the Work Schedule information?

Thanks!

9件のコメント

  • 0
    Avatar
    Ben Hadden

    @Ross

    This is something we have on our radar, but it's not available yet.  The WorkDayRules are a bit different than our normal entities so there's a bit of development involved in exposing them through the API.  I've linked this question to our development ticket so we'll update you as we progress.  In the meantime, can you give some specific use cases for how you'd access the data?  Is there an internal app you're trying to integrate with the Work Schedule data stored in Shotgun?  Let us know more so we can add make sure to cover your needs.

  • 0
    Avatar
    Jan Fiedler

    Hi,

    I've eMailed this to your support already but just wanted to make sure it's tracked here as well, here's our use case:

    At the moment we are scheduling our vacation days and holidays with a CalDav based production calendar that everyone can access using e.g. iCal. 
    In order to keep everything in Shotgun, which would also help us automate our overtime tracking, we'd like to move this to the Work Schedule in Shotgun. But we would still like to publish what we change in the Work Schedule to our CalDav production calendar to give people outside of Shotgun the possibility to check vacations of people quickly. So we would need a way to export the Work Schedule (best would of course be in vCal format)?

    Thanks!

  • 0
    Avatar
    Ben Hadden

    @Jan

    That's awesome to hear you guys are thinking along those lines.  We've got a ticket (SG #4582) to support iCal integration (probably via vCal or some other CalDev format).  We'll be sure to keep updating via this forum when we open up that ticket.  In the meantime, we'll keep working to expose Work Schedules via the API as a workaround.

  • 0
    Avatar
    Alberto Arenas Garcia

    Hi,

    For us, exposing WorkDayRule, so far. Do you have an ETA for exposing Work Schedules via API?

  • 0
    Avatar
    Ben Hadden

    Hi Alberto,

    It's on our roadmap, but we don't have an exact date yet.  I'll keep this thread posted with updates as we have them, though!  Thank you so much for your patience :)

  • 0
    Avatar
    Alberto Arenas Garcia

    Hi Ben,

    Thanks a lot! I will keep an eye on this thread.

  • 0
    Avatar
    Stephen Chiu

    Ross + Alberto + Jan, 

    Good news! We plan on rolling out an iteration of this (API access to WorkDayRules) in our upcoming 3.2 Release. Keep an eye out for it! Thanks as always for standing by...

  • 0
    Avatar
    Armando Ricalde

    Wohoo! Yes 

    We've already implemented a Time Clock system with SG so this is great news in order to link it to our payroll and other stuff

  • 0
    Avatar
    Rodrigo Rodriguez

    Hi

    Could you tell me what happened with this?

    We are using  python api version 3.0.8 and still can't access to the WorkDayRules, I proved api version 3.0.9.beta2 and get the same result

    Thanks

ログインしてコメントを残してください。