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.