GraphQL API missing timelog nodes
Summary
Using the graphQL API to fetch timelogs I get different results as the ones shown on the gitlab UI.
This is only true if I log time using a 3th party tool. But for me the issue comes where the Gitlab UI does in fact reflect the changes but the graphql API does not.
Not sure if the issue is related to what token/credentials where used to log time and what was used to get the report, although to get it I use a token generated from the group owner
Steps to reproduce
- Create a new group and project
- Create a test issue
- Log time (I'm using GTT )
- Perform a graphQL query using a token from the owner of the group
Example Project
https://gitlab.com/b2812/bug-project/
What is the current bug behavior?
- GraphQL API replies with no timelog nodes
What is the expected correct behavior?
- GraphQL API resplies with one node (the one shown on the screenshot below (4m 46s)
Relevant logs and/or screenshots
Query parameters:
{
group(fullPath: "b2812") {
name
timelogs(startTime: "2021-12-08T19:12:17Z", endTime: "2021-12-09T20:18:16.690Z") {
pageInfo {
hasNextPage
endCursor
}
nodes {
mergeRequest {
iid
projectId
webUrl
title
state
project {
id
namespace {
fullName
name
}
}
}
user {
username
}
issue {
iid
webUrl
state
projectId
title
}
spentAt
timeSpent
summary
note {
body
url
}
}
}
}
}
API response:
9:11:51 PM
Info
{data={group={timelogs={nodes=[], pageInfo={endCursor=null, hasNextPage=false}}, name=bug-group}}}
Output of checks
This bug happens on GitLab.com