Skip to main content

project_issue_status_counts

Gets or lists a project_issue_status_counts resource.

Overview​

Nameproject_issue_status_counts
TypeResource
Idgitlab.issues.project_issue_status_counts

Fields​

The following fields are returned by SELECT queries:

GraphQL response envelope

NameDatatypeDescription
all_integerNumber of issues with status ALL for the project
closedintegerNumber of issues with status CLOSED for the project
openedintegerNumber of issues with status OPENED for the project

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectfull_path, hostassignee_id, assignee_wildcard_id, author_username, closed_after, closed_before, confidential, created_after, created_before, crm_contact_id, crm_organization_id, due_after, due_before, epic_id, epic_wildcard_id, health_status_filter, iid, include_subepics, iteration_title, iteration_wildcard_id, milestone_wildcard_id, my_reaction_emoji, release_tag_wildcard_id, search, subscribed, updated_after, updated_before, weight, weight_wildcard_idCounts of issues by status for the project. Generated from the GitLab GraphQL schema field Project.issueStatusCounts (IssueStatusCountsType).

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
full_pathstringFull path of the project, for example gitlab-org/gitlab
hoststringGitLab host, with an optional port (default gitlab.com). Resolved from the GITLAB_HOST environment variable when it is set (x-stackQL-envVar); a WHERE host value always takes precedence. Self-managed instances: the provider is generated from the gitlab.com schema, so older instances may reject fields they do not serve. (default: gitlab.com, x-stackQL-envVar: GITLAB_HOST)
assignee_idstringID of a user assigned to the issues. Wildcard values "NONE" and "ANY" are supported.
assignee_wildcard_idstringFilter by assignee wildcard. Incompatible with assigneeUsername and assigneeUsernames.
author_usernamestringUsername of the author of the issue.
closed_afterstringIssues closed after the date.
closed_beforestringIssues closed before the date.
confidentialbooleanFilter for confidential issues. If "false", excludes confidential issues. If "true", returns only confidential issues.
created_afterstringIssues created after the date.
created_beforestringIssues created before the date.
crm_contact_idstringID of a contact assigned to the issues.
crm_organization_idstringID of an organization assigned to the issues.
due_afterstringReturn issues due on or after the given time.
due_beforestringReturn issues due on or before the given time.
epic_idstringID of an epic associated with the issues, "none" and "any" values are supported.
epic_wildcard_idstringFilter by epic ID wildcard. Incompatible with epicId.
health_status_filterstringHealth status of the issue, "none" and "any" values are supported.
iidstringIID of the issue. For example, "1".
include_subepicsbooleanWhether to include subepics when filtering issues by epicId.
iteration_titlestringFilter by iteration title.
iteration_wildcard_idstringFilter by iteration ID wildcard.
milestone_wildcard_idstringFilter issues by milestone ID wildcard.
my_reaction_emojistringFilter by reaction emoji applied by the current user. Wildcard values "NONE" and "ANY" are supported.
release_tag_wildcard_idstringFilter issues by release tag ID wildcard.
subscribedstringIssues the current user is subscribed to.
updated_afterstringIssues updated after the date.
updated_beforestringIssues updated before the date.
weightstringWeight applied to the issue, "none" and "any" values are supported.
weight_wildcard_idstringFilter by weight ID wildcard. Incompatible with weight.

SELECT examples​

Counts of issues by status for the project. Generated from the GitLab GraphQL schema field Project.issueStatusCounts (IssueStatusCountsType).

SELECT
all_,
closed,
opened
FROM gitlab.issues.project_issue_status_counts
WHERE full_path = '{{ full_path }}' -- required
AND host = '{{ host }}' -- required (defaults to gitlab.com; or set GITLAB_HOST)
AND assignee_id = '{{ assignee_id }}'
AND assignee_wildcard_id = '{{ assignee_wildcard_id }}'
AND author_username = '{{ author_username }}'
AND closed_after = '{{ closed_after }}'
AND closed_before = '{{ closed_before }}'
AND confidential = '{{ confidential }}'
AND created_after = '{{ created_after }}'
AND created_before = '{{ created_before }}'
AND crm_contact_id = '{{ crm_contact_id }}'
AND crm_organization_id = '{{ crm_organization_id }}'
AND due_after = '{{ due_after }}'
AND due_before = '{{ due_before }}'
AND epic_id = '{{ epic_id }}'
AND epic_wildcard_id = '{{ epic_wildcard_id }}'
AND health_status_filter = '{{ health_status_filter }}'
AND iid = '{{ iid }}'
AND include_subepics = '{{ include_subepics }}'
AND iteration_title = '{{ iteration_title }}'
AND iteration_wildcard_id = '{{ iteration_wildcard_id }}'
AND milestone_wildcard_id = '{{ milestone_wildcard_id }}'
AND my_reaction_emoji = '{{ my_reaction_emoji }}'
AND release_tag_wildcard_id = '{{ release_tag_wildcard_id }}'
AND search = '{{ search }}'
AND subscribed = '{{ subscribed }}'
AND updated_after = '{{ updated_after }}'
AND updated_before = '{{ updated_before }}'
AND weight = '{{ weight }}'
AND weight_wildcard_id = '{{ weight_wildcard_id }}'
;