Time Tracking Log via API

The new API version (2023-10) now only gives a summarized version of the time-tracking log. It does not give individual users.


Hi @WasayNoori

See also: https://developer.monday.com/api-reference/docs/column-values-v2#using-fragments-to-get-column-specific-fields. With column values v2 you need to explicitly ask for this kind of info, like:

{
  items(ids: 123456789) {
    column_values(ids: "time_tracking") {
      text
      ... on TimeTrackingValue {
        history {
          started_at
          ended_at
          ended_user_id
        }
      }
    }
  }
}

Which gives you (in this example)

{
  "data": {
    "items": [
      {
        "column_values": [
          {
            "text": "29:38:41",
            "history": [
              {
                "started_at": "2020-08-22T19:03:34+00:00",
                "ended_at": "2020-08-22T19:53:06+00:00",
                "ended_user_id": "123456"
              },
              {
                "started_at": "2020-08-22T21:07:48+00:00",
                "ended_at": "2020-08-22T21:09:49+00:00",
                "ended_user_id": "123456"
              },
              {
                "started_at": "2020-08-23T12:24:48+00:00",
                "ended_at": "2020-08-24T17:11:56+00:00",
                "ended_user_id": "123456"
              }
            ]
          }
        ]
      }
    ]
  },
  "account_id": xxxxxx
}
1 Like