Skip to main content

iteration

Creates, updates, deletes, gets or lists an iteration resource.

Overview​

Nameiteration
TypeResource
Idgitlab.groups.iteration

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
getselectid, hostFind an iteration. Generated from the GitLab GraphQL schema field Query.iteration (Iteration).

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
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)
idstringFind an iteration by its ID.

SELECT examples​

Find an iteration. Generated from the GitLab GraphQL schema field Query.iteration (Iteration).

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.iteration
WHERE id = '{{ id }}' -- required
AND host = '{{ host }}' -- required (defaults to gitlab.com; or set GITLAB_HOST)
;