Hi Monday!
I am looking for a way to collect the sessions recorded by the time tracking column in the items.
The proposal is to be able to export it to Google Sheets as a big table contain all the sessions with additional data I will add.
Currently, I am trying to leverage the new API with GraphQL in order to export the sessions each user did and unable to do that.
This is the query I am sending:
{
boards(ids: [MY_BOARD_IDS]) {
id
name
tags {
id
name
}
items (ids: [MY_TRACKED_ITEM_IDS]) {
id
name
column_values (ids: ["time_tracking"]) {
id
value
}
}
}
}
And the response doesn’t contain the sessions as can be seen on the GUI.
The value node contains the following information.
{
“running”:“false”,
“startDate”:1597066904,
“duration”:18720,
“changed_at”:“2020-08-10T18:53:44.830Z”
}
What I was expected to see is an array of sessions with the following data:
- time started (as timestamp)
- duration (in seconds)