1. Packages
  2. Gitlab Provider
  3. API Docs
  4. getProjectIssueLabelEvents
GitLab v9.7.0 published on Monday, Dec 22, 2025 by Pulumi
gitlab logo
GitLab v9.7.0 published on Monday, Dec 22, 2025 by Pulumi

    The gitlab.getProjectIssueLabelEvents data source retrieves label events for a specific GitLab project issue.

    Upstream API: GitLab Resource Label Events API docs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gitlab from "@pulumi/gitlab";
    
    const example = gitlab.getProjectIssueLabelEvents({
        project: "my-group/my-project",
        issueIid: 42,
    });
    
    import pulumi
    import pulumi_gitlab as gitlab
    
    example = gitlab.get_project_issue_label_events(project="my-group/my-project",
        issue_iid=42)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gitlab/sdk/v9/go/gitlab"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := gitlab.GetProjectIssueLabelEvents(ctx, &gitlab.GetProjectIssueLabelEventsArgs{
    			Project:  "my-group/my-project",
    			IssueIid: 42,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using GitLab = Pulumi.GitLab;
    
    return await Deployment.RunAsync(() => 
    {
        var example = GitLab.GetProjectIssueLabelEvents.Invoke(new()
        {
            Project = "my-group/my-project",
            IssueIid = 42,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gitlab.GitlabFunctions;
    import com.pulumi.gitlab.inputs.GetProjectIssueLabelEventsArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var example = GitlabFunctions.getProjectIssueLabelEvents(GetProjectIssueLabelEventsArgs.builder()
                .project("my-group/my-project")
                .issueIid(42)
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: gitlab:getProjectIssueLabelEvents
          arguments:
            project: my-group/my-project
            issueIid: 42
    

    Using getProjectIssueLabelEvents

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getProjectIssueLabelEvents(args: GetProjectIssueLabelEventsArgs, opts?: InvokeOptions): Promise<GetProjectIssueLabelEventsResult>
    function getProjectIssueLabelEventsOutput(args: GetProjectIssueLabelEventsOutputArgs, opts?: InvokeOptions): Output<GetProjectIssueLabelEventsResult>
    def get_project_issue_label_events(issue_iid: Optional[int] = None,
                                       pages_returned: Optional[int] = None,
                                       project: Optional[str] = None,
                                       opts: Optional[InvokeOptions] = None) -> GetProjectIssueLabelEventsResult
    def get_project_issue_label_events_output(issue_iid: Optional[pulumi.Input[int]] = None,
                                       pages_returned: Optional[pulumi.Input[int]] = None,
                                       project: Optional[pulumi.Input[str]] = None,
                                       opts: Optional[InvokeOptions] = None) -> Output[GetProjectIssueLabelEventsResult]
    func GetProjectIssueLabelEvents(ctx *Context, args *GetProjectIssueLabelEventsArgs, opts ...InvokeOption) (*GetProjectIssueLabelEventsResult, error)
    func GetProjectIssueLabelEventsOutput(ctx *Context, args *GetProjectIssueLabelEventsOutputArgs, opts ...InvokeOption) GetProjectIssueLabelEventsResultOutput

    > Note: This function is named GetProjectIssueLabelEvents in the Go SDK.

    public static class GetProjectIssueLabelEvents 
    {
        public static Task<GetProjectIssueLabelEventsResult> InvokeAsync(GetProjectIssueLabelEventsArgs args, InvokeOptions? opts = null)
        public static Output<GetProjectIssueLabelEventsResult> Invoke(GetProjectIssueLabelEventsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetProjectIssueLabelEventsResult> getProjectIssueLabelEvents(GetProjectIssueLabelEventsArgs args, InvokeOptions options)
    public static Output<GetProjectIssueLabelEventsResult> getProjectIssueLabelEvents(GetProjectIssueLabelEventsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: gitlab:index/getProjectIssueLabelEvents:getProjectIssueLabelEvents
      arguments:
        # arguments dictionary

    The following arguments are supported:

    IssueIid int
    The internal ID of the issue.
    Project string
    The ID or full path of the project.
    PagesReturned int
    Number of pages to return. Default is 1.
    IssueIid int
    The internal ID of the issue.
    Project string
    The ID or full path of the project.
    PagesReturned int
    Number of pages to return. Default is 1.
    issueIid Integer
    The internal ID of the issue.
    project String
    The ID or full path of the project.
    pagesReturned Integer
    Number of pages to return. Default is 1.
    issueIid number
    The internal ID of the issue.
    project string
    The ID or full path of the project.
    pagesReturned number
    Number of pages to return. Default is 1.
    issue_iid int
    The internal ID of the issue.
    project str
    The ID or full path of the project.
    pages_returned int
    Number of pages to return. Default is 1.
    issueIid Number
    The internal ID of the issue.
    project String
    The ID or full path of the project.
    pagesReturned Number
    Number of pages to return. Default is 1.

    getProjectIssueLabelEvents Result

    The following output properties are available:

    Events List<Pulumi.GitLab.Outputs.GetProjectIssueLabelEventsEvent>
    List of label events for the issue.
    Id string
    IssueIid int
    The internal ID of the issue.
    Project string
    The ID or full path of the project.
    PagesReturned int
    Number of pages to return. Default is 1.
    Events []GetProjectIssueLabelEventsEvent
    List of label events for the issue.
    Id string
    IssueIid int
    The internal ID of the issue.
    Project string
    The ID or full path of the project.
    PagesReturned int
    Number of pages to return. Default is 1.
    events List<GetProjectIssueLabelEventsEvent>
    List of label events for the issue.
    id String
    issueIid Integer
    The internal ID of the issue.
    project String
    The ID or full path of the project.
    pagesReturned Integer
    Number of pages to return. Default is 1.
    events GetProjectIssueLabelEventsEvent[]
    List of label events for the issue.
    id string
    issueIid number
    The internal ID of the issue.
    project string
    The ID or full path of the project.
    pagesReturned number
    Number of pages to return. Default is 1.
    events Sequence[GetProjectIssueLabelEventsEvent]
    List of label events for the issue.
    id str
    issue_iid int
    The internal ID of the issue.
    project str
    The ID or full path of the project.
    pages_returned int
    Number of pages to return. Default is 1.
    events List<Property Map>
    List of label events for the issue.
    id String
    issueIid Number
    The internal ID of the issue.
    project String
    The ID or full path of the project.
    pagesReturned Number
    Number of pages to return. Default is 1.

    Supporting Types

    GetProjectIssueLabelEventsEvent

    Action string
    The action performed on the label (add, remove).
    CreatedAt string
    The date and time when the label event was created.
    Id int
    The ID of the label event.
    Label Pulumi.GitLab.Inputs.GetProjectIssueLabelEventsEventLabel
    The label that was added or removed.
    ResourceId int
    The ID of the resource associated with the label event.
    ResourceType string
    The type of the resource associated with the label event.
    User Pulumi.GitLab.Inputs.GetProjectIssueLabelEventsEventUser
    The user who performed the action.
    Action string
    The action performed on the label (add, remove).
    CreatedAt string
    The date and time when the label event was created.
    Id int
    The ID of the label event.
    Label GetProjectIssueLabelEventsEventLabel
    The label that was added or removed.
    ResourceId int
    The ID of the resource associated with the label event.
    ResourceType string
    The type of the resource associated with the label event.
    User GetProjectIssueLabelEventsEventUser
    The user who performed the action.
    action String
    The action performed on the label (add, remove).
    createdAt String
    The date and time when the label event was created.
    id Integer
    The ID of the label event.
    label GetProjectIssueLabelEventsEventLabel
    The label that was added or removed.
    resourceId Integer
    The ID of the resource associated with the label event.
    resourceType String
    The type of the resource associated with the label event.
    user GetProjectIssueLabelEventsEventUser
    The user who performed the action.
    action string
    The action performed on the label (add, remove).
    createdAt string
    The date and time when the label event was created.
    id number
    The ID of the label event.
    label GetProjectIssueLabelEventsEventLabel
    The label that was added or removed.
    resourceId number
    The ID of the resource associated with the label event.
    resourceType string
    The type of the resource associated with the label event.
    user GetProjectIssueLabelEventsEventUser
    The user who performed the action.
    action str
    The action performed on the label (add, remove).
    created_at str
    The date and time when the label event was created.
    id int
    The ID of the label event.
    label GetProjectIssueLabelEventsEventLabel
    The label that was added or removed.
    resource_id int
    The ID of the resource associated with the label event.
    resource_type str
    The type of the resource associated with the label event.
    user GetProjectIssueLabelEventsEventUser
    The user who performed the action.
    action String
    The action performed on the label (add, remove).
    createdAt String
    The date and time when the label event was created.
    id Number
    The ID of the label event.
    label Property Map
    The label that was added or removed.
    resourceId Number
    The ID of the resource associated with the label event.
    resourceType String
    The type of the resource associated with the label event.
    user Property Map
    The user who performed the action.

    GetProjectIssueLabelEventsEventLabel

    Color string
    The color of the label.
    Description string
    The description of the label.
    Id int
    The ID of the label.
    Name string
    The name of the label.
    Color string
    The color of the label.
    Description string
    The description of the label.
    Id int
    The ID of the label.
    Name string
    The name of the label.
    color String
    The color of the label.
    description String
    The description of the label.
    id Integer
    The ID of the label.
    name String
    The name of the label.
    color string
    The color of the label.
    description string
    The description of the label.
    id number
    The ID of the label.
    name string
    The name of the label.
    color str
    The color of the label.
    description str
    The description of the label.
    id int
    The ID of the label.
    name str
    The name of the label.
    color String
    The color of the label.
    description String
    The description of the label.
    id Number
    The ID of the label.
    name String
    The name of the label.

    GetProjectIssueLabelEventsEventUser

    AvatarUrl string
    The avatar URL of the user.
    Id int
    The ID of the user.
    Name string
    The name of the user.
    State string
    The state of the user.
    Username string
    The username of the user.
    WebUrl string
    The web URL of the user.
    AvatarUrl string
    The avatar URL of the user.
    Id int
    The ID of the user.
    Name string
    The name of the user.
    State string
    The state of the user.
    Username string
    The username of the user.
    WebUrl string
    The web URL of the user.
    avatarUrl String
    The avatar URL of the user.
    id Integer
    The ID of the user.
    name String
    The name of the user.
    state String
    The state of the user.
    username String
    The username of the user.
    webUrl String
    The web URL of the user.
    avatarUrl string
    The avatar URL of the user.
    id number
    The ID of the user.
    name string
    The name of the user.
    state string
    The state of the user.
    username string
    The username of the user.
    webUrl string
    The web URL of the user.
    avatar_url str
    The avatar URL of the user.
    id int
    The ID of the user.
    name str
    The name of the user.
    state str
    The state of the user.
    username str
    The username of the user.
    web_url str
    The web URL of the user.
    avatarUrl String
    The avatar URL of the user.
    id Number
    The ID of the user.
    name String
    The name of the user.
    state String
    The state of the user.
    username String
    The username of the user.
    webUrl String
    The web URL of the user.

    Package Details

    Repository
    GitLab pulumi/pulumi-gitlab
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the gitlab Terraform Provider.
    gitlab logo
    GitLab v9.7.0 published on Monday, Dec 22, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate