iteration
Creates, updates, deletes, gets or lists an iteration resource.
Overview​
| Name | iteration |
| Type | Resource |
| Id | gitlab.groups.iteration |
Fields​
The following fields are returned by SELECT queries:
- get
GraphQL response envelope
| Name | Datatype | Description |
|---|---|---|
id | string | ID of the iteration. |
created_at | string | Timestamp of iteration creation. |
description | string | Description of the iteration. |
due_date | string | Timestamp of the iteration due date. |
group_ | object | Group identity (id, full_path, name) |
iid | string | Internal ID of the iteration. |
scoped_path | string | Web path of the iteration, scoped to the query parent. Only valid for Project parents. Returns null in other contexts. |
scoped_url | string | Web URL of the iteration, scoped to the query parent. Only valid for Project parents. Returns null in other contexts. |
sequence | integer | Sequence 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_date | string | Timestamp of the iteration start date. |
state | string | State of the iteration. (upcoming, current, opened, closed, all) |
title | string | Title of the iteration. |
updated_at | string | Timestamp of last iteration update. |
web_path | string | Web path of the iteration. |
web_url | string | Web URL of the iteration. |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | id, host | Find 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.
| Name | Datatype | Description |
|---|---|---|
host | string | GitLab 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) |
id | string | Find an iteration by its ID. |
SELECT examples​
- get
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)
;