Skip to main content

group_iterations

Gets or lists a group_iterations resource.

Overview​

Namegroup_iterations
TypeResource
Idgitlab.groups.group_iterations

Fields​

The following fields are returned by SELECT queries:

GraphQL response envelope

NameDatatypeDescription
idstringID of the iteration.
created_atstringTimestamp of iteration creation.
descriptionstringDescription of the iteration.
due_datestringTimestamp of the iteration due date.
group_objectGroup identity (id, full_path, name)
iidstringInternal ID of the iteration.
scoped_pathstringWeb path of the iteration, scoped to the query parent. Only valid for Project parents. Returns null in other contexts.
scoped_urlstringWeb URL of the iteration, scoped to the query parent. Only valid for Project parents. Returns null in other contexts.
sequenceintegerSequence number for the iteration when you sort the containing cadence's iterations by the start and end date. The earliest starting and ending iteration is assigned 1.
start_datestringTimestamp of the iteration start date.
statestringState of the iteration. (upcoming, current, opened, closed, all)
titlestringTitle of the iteration.
updated_atstringTimestamp of last iteration update.
web_pathstringWeb path of the iteration.
web_urlstringWeb URL of the iteration.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectfull_path, hostid, iid, include_ancestors, include_descendants, search, sort, stateFind iterations. Generated from the GitLab GraphQL schema field Group.iterations (connection of Iteration nodes).

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 group, for example gitlab-org
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)
idstringGlobal ID of the Iteration to look up.
iidstringInternal ID of the Iteration to look up.
include_ancestorsbooleanWhether to include ancestor iterations. Defaults to true.
include_descendantsbooleanWhether to include descendant iterations.
sortstringList iterations by sort order. If unspecified, an arbitrary order (subject to change) is used.
statestringFilter iterations by state.

SELECT examples​

Find iterations. Generated from the GitLab GraphQL schema field Group.iterations (connection of Iteration nodes).

SELECT
id,
created_at,
description,
due_date,
group_,
iid,
scoped_path,
scoped_url,
sequence,
start_date,
state,
title,
updated_at,
web_path,
web_url
FROM gitlab.groups.group_iterations
WHERE full_path = '{{ full_path }}' -- required
AND host = '{{ host }}' -- required (defaults to gitlab.com; or set GITLAB_HOST)
AND id = '{{ id }}'
AND iid = '{{ iid }}'
AND include_ancestors = '{{ include_ancestors }}'
AND include_descendants = '{{ include_descendants }}'
AND search = '{{ search }}'
AND sort = '{{ sort }}'
AND state = '{{ state }}'
;