microsoftgraph / microsoftgraph/msgraph-metadata

freeBusyStatus.workingElsewhere is suppose to be 4 but does not shows so using a getschedule-request

Open
#598 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ToTriage
Dominant language
XSLT
Stars
166
Forks
55
Avg merge
16h 12m
Merged PRs (30d)
14

Description

If I request the follwing using getschedule:

{        
    "schedules": [  "me@me.onmicrosoft.com" ],
    "startTime": {
        "dateTime": "2023-01-01T08:00:00Z", "timeZone": "UTC"
    },
    "endTime": {
        "dateTime": "2023-01-02T00:00:00Z", "timeZone": "UTC"
    },
    "availabilityViewInterval": 60
}

And suppose I have several appointments with free, tentative, busy, oof, and workingElsewhere I get the following response - see below.
All appointments are reflected in availabilityView accordingly. All but workingElsewhere.

  • busy (2)
  • free (0)
  • busy (2)
  • tentative (1)
  • busy (2)
  • busy (2)
  • busy (2)
  • workingElsewhere (not 4, but 0)
  • busy (2)
  • oof (3)
  • busy (2)
  • no more appointments for the rest of the day ( 00000 )

see the line "availabilityView" below.

{
    "@odata.context": "https://graph.microsoft.com/v1.0/$metadata#Collection(microsoft.graph.scheduleInformation)",
    "value": [
        {
            "scheduleId": "me@me.onmicrosoft.com",
            "availabilityView": "2021222023200000",
            "scheduleItems": [
                {
                    "isPrivate": false,
                    "status": "busy",
                    "subject": "x",
                    "location": "",
                    "isMeeting": false,
                    "isRecurring": false,
                    "isException": false,
                    "isReminderSet": true,
                    "start": {
                        "dateTime": "2023-01-01T08:00:00.0000000",
                        "timeZone": "UTC"
                    },
                    "end": {
                        "dateTime": "2023-01-01T08:30:00.0000000",
                        "timeZone": "UTC"
                    }
                },
                {
                    "isPrivate": false,
                    "status": "free",
                    "subject": "free",
                    "location": "",
                    "isMeeting": false,
                    "isRecurring": false,
                    "isException": false,
                    "isReminderSet": true,
                    "start": {
                        "dateTime": "2023-01-01T09:00:00.0000000",
                        "timeZone": "UTC"
                    },
                    "end": {
                        "dateTime": "2023-01-01T09:30:00.0000000",
                        "timeZone": "UTC"
                    }
                },
                {
                    "isPrivate": false,
                    "status": "busy",
                    "subject": "x",
                    "location": "",
                    "isMeeting": false,
                    "isRecurring": false,
                    "isException": false,
                    "isReminderSet": true,
                    "start": {
                        "dateTime": "2023-01-01T10:00:00.0000000",
                        "timeZone": "UTC"
                    },
                    "end": {
                        "dateTime": "2023-01-01T10:30:00.0000000",
                        "timeZone": "UTC"
                    }
                },
                {
                    "isPrivate": false,
                    "status": "tentative",
                    "subject": "tentative",
                    "location": "",
                    "isMeeting": false,
                    "isRecurring": false,
                    "isException": false,
                    "isReminderSet": true,
                    "start": {
                        "dateTime": "2023-01-01T11:00:00.0000000",
                        "timeZone": "UTC"
                    },
                    "end": {
                        "dateTime": "2023-01-01T11:30:00.0000000",
                        "timeZone": "UTC"
                    }
                },
                {
                    "isPrivate": false,
                    "status": "busy",
                    "subject": "x",
                    "location": "",
                    "isMeeting": false,
                    "isRecurring": false,
                    "isException": false,
                    "isReminderSet": true,
                    "start": {
                        "dateTime": "2023-01-01T12:00:00.0000000",
                        "timeZone": "UTC"
                    },
                    "end": {
                        "dateTime": "2023-01-01T12:30:00.0000000",
                        "timeZone": "UTC"
                    }
                },
                {
                    "isPrivate": false,
                    "status": "busy",
                    "subject": "busy",
                    "location": "",
                    "isMeeting": false,
                    "isRecurring": false,
                    "isException": false,
                    "isReminderSet": true,
                    "start": {
                        "dateTime": "2023-01-01T13:00:00.0000000",
                        "timeZone": "UTC"
                    },
                    "end": {
                        "dateTime": "2023-01-01T13:30:00.0000000",
                        "timeZone": "UTC"
                    }
                },
                {
                    "isPrivate": false,
                    "status": "busy",
                    "subject": "x",
                    "location": "",
                    "isMeeting": false,
                    "isRecurring": false,
                    "isException": false,
                    "isReminderSet": true,
                    "start": {
                        "dateTime": "2023-01-01T14:00:00.0000000",
                        "timeZone": "UTC"
                    },
                    "end": {
                        "dateTime": "2023-01-01T14:30:00.0000000",
                        "timeZone": "UTC"
                    }
                },
                {
                    "isPrivate": false,
                    "status": "workingElsewhere",
                    "subject": "working elsewhere",
                    "location": "",
                    "isMeeting": false,
                    "isRecurring": false,
                    "isException": false,
                    "isReminderSet": true,
                    "start": {
                        "dateTime": "2023-01-01T15:00:00.0000000",
                        "timeZone": "UTC"
                    },
                    "end": {
                        "dateTime": "2023-01-01T15:30:00.0000000",
                        "timeZone": "UTC"
                    }
                },
                {
                    "isPrivate": false,
                    "status": "busy",
                    "subject": "x",
                    "location": "",
                    "isMeeting": false,
                    "isRecurring": false,
                    "isException": false,
                    "isReminderSet": true,
                    "start": {
                        "dateTime": "2023-01-01T16:00:00.0000000",
                        "timeZone": "UTC"
                    },
                    "end": {
                        "dateTime": "2023-01-01T16:30:00.0000000",
                        "timeZone": "UTC"
                    }
                },
                {
                    "isPrivate": false,
                    "status": "oof",
                    "subject": "out of office",
                    "location": "",
                    "isMeeting": false,
                    "isRecurring": false,
                    "isException": false,
                    "isReminderSet": true,
                    "start": {
                        "dateTime": "2023-01-01T17:00:00.0000000",
                        "timeZone": "UTC"
                    },
                    "end": {
                        "dateTime": "2023-01-01T17:30:00.0000000",
                        "timeZone": "UTC"
                    }
                },
                {
                    "isPrivate": false,
                    "status": "busy",
                    "subject": "x",
                    "location": "",
                    "isMeeting": false,
                    "isRecurring": false,
                    "isException": false,
                    "isReminderSet": true,
                    "start": {
                        "dateTime": "2023-01-01T18:00:00.0000000",
                        "timeZone": "UTC"
                    },
                    "end": {
                        "dateTime": "2023-01-01T18:30:00.0000000",
                        "timeZone": "UTC"
                    }
                }
            ],
            "workingHours": {
                "daysOfWeek": [
                    "monday",
                    "tuesday",
                    "wednesday",
                    "friday"
                ],
                "startTime": "04:00:00.0000000",
                "endTime": "20:00:00.0000000",
                "timeZone": {
                    "name": "W. Europe Standard Time"
                }
            }
        }
    ]
}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the shown getSchedule request and compare the workingElsewhere schedule item with the availabilityView value. Check the Microsoft Graph metadata repository entry points related to scheduleInformation, then determine whether the documented status mapping is represented. Done means confirming the expected mapping and identifying the required metadata change or documenting that no repository change applies.

Written by the indexing model from the issue text.

Assessment

Tech stack
json
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.