Skip to main content

group_milestones

Gets or lists a group_milestones resource.

Overview​

Namegroup_milestones
TypeResource
Idgitlab.groups.group_milestones

Fields​

The following fields are returned by SELECT queries:

GraphQL response envelope

NameDatatypeDescription
idstringID of the milestone.
created_atstringTimestamp of milestone creation.
descriptionstringDescription of the milestone.
due_datestringTimestamp of the milestone due date.
expiredbooleanExpired state of the milestone (a milestone is expired when the due date is past the current date). Defaults to false when due date has not been set.
group_objectGroup identity (id, full_path, name)
group_milestonebooleanIndicates if milestone is at group level.
iidstringInternal ID of the milestone.
projectobjectProject identity (id, full_path, name)
project_milestonebooleanIndicates if milestone is at project level.
start_datestringTimestamp of the milestone start date.
statestringState of the milestone. (active, closed)
subgroup_milestonebooleanIndicates if milestone is at subgroup level.
titlestringTitle of the milestone.
upcomingbooleanUpcoming state of the milestone (a milestone is upcoming when the start date is in the future). Defaults to false when start date has not been set.
updated_atstringTimestamp of last milestone update.
web_pathstringWeb path of the milestone.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectfull_path, hostcontaining_date, include_ancestors, include_descendants, search_title, sort, state, titleMilestones of the group. Generated from the GitLab GraphQL schema field Group.milestones (connection of Milestone 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)
containing_datestringDate the milestone contains.
include_ancestorsbooleanInclude milestones from all parent groups.
include_descendantsbooleanInclude milestones from all subgroups and subprojects.
search_titlestringSearch string for the title.
sortstringSort milestones by the criteria.
statestringFilter milestones by state.
titlestringTitle of the milestone.

SELECT examples​

Milestones of the group. Generated from the GitLab GraphQL schema field Group.milestones (connection of Milestone nodes).

SELECT
id,
created_at,
description,
due_date,
expired,
group_,
group_milestone,
iid,
project,
project_milestone,
start_date,
state,
subgroup_milestone,
title,
upcoming,
updated_at,
web_path
FROM gitlab.groups.group_milestones
WHERE full_path = '{{ full_path }}' -- required
AND host = '{{ host }}' -- required (defaults to gitlab.com; or set GITLAB_HOST)
AND containing_date = '{{ containing_date }}'
AND include_ancestors = '{{ include_ancestors }}'
AND include_descendants = '{{ include_descendants }}'
AND search_title = '{{ search_title }}'
AND sort = '{{ sort }}'
AND state = '{{ state }}'
AND title = '{{ title }}'
;