|
| 1 | +--- |
| 2 | +# generated by https://github.com/hashicorp/terraform-plugin-docs |
| 3 | +page_title: "gitlab_project_issue_label_events Data Source - terraform-provider-gitlab" |
| 4 | +subcategory: "" |
| 5 | +description: |- |
| 6 | + The gitlab_project_issue_label_events data source retrieves label events for a specific GitLab project issue. |
| 7 | + Upstream API: GitLab Resource Label Events API docs https://docs.gitlab.com/api/resource_label_events/ |
| 8 | +--- |
| 9 | + |
| 10 | +# gitlab_project_issue_label_events (Data Source) |
| 11 | + |
| 12 | +The `gitlab_project_issue_label_events` data source retrieves label events for a specific GitLab project issue. |
| 13 | + |
| 14 | +**Upstream API**: [GitLab Resource Label Events API docs](https://docs.gitlab.com/api/resource_label_events/) |
| 15 | + |
| 16 | +## Example Usage |
| 17 | + |
| 18 | +```terraform |
| 19 | +data "gitlab_project_issue_label_events" "example" { |
| 20 | + project = "my-group/my-project" |
| 21 | + issue_iid = 42 |
| 22 | +} |
| 23 | +``` |
| 24 | + |
| 25 | +<!-- schema generated by tfplugindocs --> |
| 26 | +## Schema |
| 27 | + |
| 28 | +### Required |
| 29 | + |
| 30 | +- `issue_iid` (Number) The internal ID of the issue. |
| 31 | +- `project` (String) The ID or full path of the project. |
| 32 | + |
| 33 | +### Optional |
| 34 | + |
| 35 | +- `pages_returned` (Number) Number of pages to return. Default is 1. |
| 36 | + |
| 37 | +### Read-Only |
| 38 | + |
| 39 | +- `events` (Attributes List) List of label events for the issue. (see [below for nested schema](#nestedatt--events)) |
| 40 | +- `id` (String) The ID of this Terraform resource. In the format of `<project>:<issue_iid>`. |
| 41 | + |
| 42 | +<a id="nestedatt--events"></a> |
| 43 | +### Nested Schema for `events` |
| 44 | + |
| 45 | +Read-Only: |
| 46 | + |
| 47 | +- `action` (String) The action performed on the label (add, remove). |
| 48 | +- `created_at` (String) The date and time when the label event was created. |
| 49 | +- `id` (Number) The ID of the label event. |
| 50 | +- `label` (Attributes) The label that was added or removed. (see [below for nested schema](#nestedatt--events--label)) |
| 51 | +- `resource_id` (Number) The ID of the resource associated with the label event. |
| 52 | +- `resource_type` (String) The type of the resource associated with the label event. |
| 53 | +- `user` (Attributes) The user who performed the action. (see [below for nested schema](#nestedatt--events--user)) |
| 54 | + |
| 55 | +<a id="nestedatt--events--label"></a> |
| 56 | +### Nested Schema for `events.label` |
| 57 | + |
| 58 | +Read-Only: |
| 59 | + |
| 60 | +- `color` (String) The color of the label. |
| 61 | +- `description` (String) The description of the label. |
| 62 | +- `id` (Number) The ID of the label. |
| 63 | +- `name` (String) The name of the label. |
| 64 | + |
| 65 | + |
| 66 | +<a id="nestedatt--events--user"></a> |
| 67 | +### Nested Schema for `events.user` |
| 68 | + |
| 69 | +Read-Only: |
| 70 | + |
| 71 | +- `avatar_url` (String) The avatar URL of the user. |
| 72 | +- `id` (Number) The ID of the user. |
| 73 | +- `name` (String) The name of the user. |
| 74 | +- `state` (String) The state of the user. |
| 75 | +- `username` (String) The username of the user. |
| 76 | +- `web_url` (String) The web URL of the user. |
0 commit comments