The gitlab_project_milestone
data source allows get details of a project milestone.
Upstream API: GitLab REST API docs
# By project ID
data "gitlab_project_milestone" "example" {
project = "12345"
milestone_id = 10
}
# By project full path
data "gitlab_project_milestone" "example" {
project = "foo/bar"
milestone_id = 10
}
milestone_id
(Number) The instance-wide ID of the project’s milestone.project
(String) The ID or URL-encoded path of the project owned by the authenticated user.created_at
(String) The time of creation of the milestone. Date time string, ISO 8601 formatted, for example 2016-03-11T03:45:40Z.description
(String) The description of the milestone.due_date
(String) The due date of the milestone. Date time string in the format YYYY-MM-DD, for example 2016-03-11.expired
(Boolean) Bool, true if milestone expired.id
(String) The ID of this resource.iid
(Number) The ID of the project's milestone.project_id
(Number) The project ID of milestone.start_date
(String) The start date of the milestone. Date time string in the format YYYY-MM-DD, for example 2016-03-11.state
(String) The state of the milestone. Valid values are: active
, closed
.title
(String) The title of a milestone.updated_at
(String) The last update time of the milestone. Date time string, ISO 8601 formatted, for example 2016-03-11T03:45:40Z.web_url
(String) The web URL of the milestone.