I’m using this as a starting point Pagination | Zenhub Developers.
It seems to return only open issues.
Can it accept filter to get closed items?
I’m using this as a starting point Pagination | Zenhub Developers.
It seems to return only open issues.
Can it accept filter to get closed items?
Hey @fjk, to get the closed issues you’ll need to use the searchClosedIssues
query. Should look something like this:
query getClosedIssues($workspaceId: ID!) {
searchClosedIssues(
first: 10,
filters: {}
workspaceId: $workspaceId
) {
totalCount
pageInfo {
endCursor
startCursor
hasNextPage
}
nodes {
id
repository {
id
name
}
number
title
}
}
}
thanks, this works for me.
Hi @Evhaus.from.Zenhub ,
I tried using the searchClosedIssues
query with filters as given above (i’m doing first: 100 and looping through the whole set with an endCursor), however I’m finding that searchClosedIssues
isn’t returning 100% of my closed issues.
If I had to guess, it seems like I’m missing closed issues from after ~May 2024?
Why would that be?
FWIW, this missing issues do show up under the issueByInfo
query, when using this signature:
issueByInfo(
repositoryGhId: $github_repo_id,
issueNumber: $issue_number
)