1. Packages
  2. Gitlab Provider
  3. API Docs
  4. IntegrationJira
GitLab v8.4.1 published on Tuesday, Sep 24, 2024 by Pulumi

gitlab.IntegrationJira

Explore with Pulumi AI

gitlab logo
GitLab v8.4.1 published on Tuesday, Sep 24, 2024 by Pulumi

    The gitlab.IntegrationJira resource allows to manage the lifecycle of a project integration with Jira.

    Upstream API: GitLab REST API docs

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as gitlab from "@pulumi/gitlab";
    
    const awesomeProject = new gitlab.Project("awesome_project", {
        name: "awesome_project",
        description: "My awesome project.",
        visibilityLevel: "public",
    });
    const jira = new gitlab.IntegrationJira("jira", {
        project: awesomeProject.id,
        url: "https://jira.example.com",
        username: "user",
        password: "mypass",
    });
    
    import pulumi
    import pulumi_gitlab as gitlab
    
    awesome_project = gitlab.Project("awesome_project",
        name="awesome_project",
        description="My awesome project.",
        visibility_level="public")
    jira = gitlab.IntegrationJira("jira",
        project=awesome_project.id,
        url="https://jira.example.com",
        username="user",
        password="mypass")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gitlab/sdk/v8/go/gitlab"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		awesomeProject, err := gitlab.NewProject(ctx, "awesome_project", &gitlab.ProjectArgs{
    			Name:            pulumi.String("awesome_project"),
    			Description:     pulumi.String("My awesome project."),
    			VisibilityLevel: pulumi.String("public"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = gitlab.NewIntegrationJira(ctx, "jira", &gitlab.IntegrationJiraArgs{
    			Project:  awesomeProject.ID(),
    			Url:      pulumi.String("https://jira.example.com"),
    			Username: pulumi.String("user"),
    			Password: pulumi.String("mypass"),
    		})
    		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 awesomeProject = new GitLab.Project("awesome_project", new()
        {
            Name = "awesome_project",
            Description = "My awesome project.",
            VisibilityLevel = "public",
        });
    
        var jira = new GitLab.IntegrationJira("jira", new()
        {
            Project = awesomeProject.Id,
            Url = "https://jira.example.com",
            Username = "user",
            Password = "mypass",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gitlab.Project;
    import com.pulumi.gitlab.ProjectArgs;
    import com.pulumi.gitlab.IntegrationJira;
    import com.pulumi.gitlab.IntegrationJiraArgs;
    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) {
            var awesomeProject = new Project("awesomeProject", ProjectArgs.builder()
                .name("awesome_project")
                .description("My awesome project.")
                .visibilityLevel("public")
                .build());
    
            var jira = new IntegrationJira("jira", IntegrationJiraArgs.builder()
                .project(awesomeProject.id())
                .url("https://jira.example.com")
                .username("user")
                .password("mypass")
                .build());
    
        }
    }
    
    resources:
      awesomeProject:
        type: gitlab:Project
        name: awesome_project
        properties:
          name: awesome_project
          description: My awesome project.
          visibilityLevel: public
      jira:
        type: gitlab:IntegrationJira
        properties:
          project: ${awesomeProject.id}
          url: https://jira.example.com
          username: user
          password: mypass
    

    Create IntegrationJira Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new IntegrationJira(name: string, args: IntegrationJiraArgs, opts?: CustomResourceOptions);
    @overload
    def IntegrationJira(resource_name: str,
                        args: IntegrationJiraArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def IntegrationJira(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        password: Optional[str] = None,
                        url: Optional[str] = None,
                        project: Optional[str] = None,
                        jira_issue_transition_id: Optional[str] = None,
                        issues_enabled: Optional[bool] = None,
                        jira_issue_prefix: Optional[str] = None,
                        jira_issue_regex: Optional[str] = None,
                        jira_issue_transition_automatic: Optional[bool] = None,
                        api_url: Optional[str] = None,
                        merge_requests_events: Optional[bool] = None,
                        jira_auth_type: Optional[int] = None,
                        commit_events: Optional[bool] = None,
                        project_key: Optional[str] = None,
                        project_keys: Optional[Sequence[str]] = None,
                        comment_on_event_enabled: Optional[bool] = None,
                        use_inherited_settings: Optional[bool] = None,
                        username: Optional[str] = None)
    func NewIntegrationJira(ctx *Context, name string, args IntegrationJiraArgs, opts ...ResourceOption) (*IntegrationJira, error)
    public IntegrationJira(string name, IntegrationJiraArgs args, CustomResourceOptions? opts = null)
    public IntegrationJira(String name, IntegrationJiraArgs args)
    public IntegrationJira(String name, IntegrationJiraArgs args, CustomResourceOptions options)
    
    type: gitlab:IntegrationJira
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args IntegrationJiraArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args IntegrationJiraArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args IntegrationJiraArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IntegrationJiraArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IntegrationJiraArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var integrationJiraResource = new GitLab.IntegrationJira("integrationJiraResource", new()
    {
        Password = "string",
        Url = "string",
        Project = "string",
        JiraIssueTransitionId = "string",
        IssuesEnabled = false,
        JiraIssuePrefix = "string",
        JiraIssueRegex = "string",
        JiraIssueTransitionAutomatic = false,
        ApiUrl = "string",
        MergeRequestsEvents = false,
        JiraAuthType = 0,
        CommitEvents = false,
        ProjectKey = "string",
        ProjectKeys = new[]
        {
            "string",
        },
        CommentOnEventEnabled = false,
        UseInheritedSettings = false,
        Username = "string",
    });
    
    example, err := gitlab.NewIntegrationJira(ctx, "integrationJiraResource", &gitlab.IntegrationJiraArgs{
    	Password:                     pulumi.String("string"),
    	Url:                          pulumi.String("string"),
    	Project:                      pulumi.String("string"),
    	JiraIssueTransitionId:        pulumi.String("string"),
    	IssuesEnabled:                pulumi.Bool(false),
    	JiraIssuePrefix:              pulumi.String("string"),
    	JiraIssueRegex:               pulumi.String("string"),
    	JiraIssueTransitionAutomatic: pulumi.Bool(false),
    	ApiUrl:                       pulumi.String("string"),
    	MergeRequestsEvents:          pulumi.Bool(false),
    	JiraAuthType:                 pulumi.Int(0),
    	CommitEvents:                 pulumi.Bool(false),
    	ProjectKey:                   pulumi.String("string"),
    	ProjectKeys: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	CommentOnEventEnabled: pulumi.Bool(false),
    	UseInheritedSettings:  pulumi.Bool(false),
    	Username:              pulumi.String("string"),
    })
    
    var integrationJiraResource = new IntegrationJira("integrationJiraResource", IntegrationJiraArgs.builder()
        .password("string")
        .url("string")
        .project("string")
        .jiraIssueTransitionId("string")
        .issuesEnabled(false)
        .jiraIssuePrefix("string")
        .jiraIssueRegex("string")
        .jiraIssueTransitionAutomatic(false)
        .apiUrl("string")
        .mergeRequestsEvents(false)
        .jiraAuthType(0)
        .commitEvents(false)
        .projectKey("string")
        .projectKeys("string")
        .commentOnEventEnabled(false)
        .useInheritedSettings(false)
        .username("string")
        .build());
    
    integration_jira_resource = gitlab.IntegrationJira("integrationJiraResource",
        password="string",
        url="string",
        project="string",
        jira_issue_transition_id="string",
        issues_enabled=False,
        jira_issue_prefix="string",
        jira_issue_regex="string",
        jira_issue_transition_automatic=False,
        api_url="string",
        merge_requests_events=False,
        jira_auth_type=0,
        commit_events=False,
        project_key="string",
        project_keys=["string"],
        comment_on_event_enabled=False,
        use_inherited_settings=False,
        username="string")
    
    const integrationJiraResource = new gitlab.IntegrationJira("integrationJiraResource", {
        password: "string",
        url: "string",
        project: "string",
        jiraIssueTransitionId: "string",
        issuesEnabled: false,
        jiraIssuePrefix: "string",
        jiraIssueRegex: "string",
        jiraIssueTransitionAutomatic: false,
        apiUrl: "string",
        mergeRequestsEvents: false,
        jiraAuthType: 0,
        commitEvents: false,
        projectKey: "string",
        projectKeys: ["string"],
        commentOnEventEnabled: false,
        useInheritedSettings: false,
        username: "string",
    });
    
    type: gitlab:IntegrationJira
    properties:
        apiUrl: string
        commentOnEventEnabled: false
        commitEvents: false
        issuesEnabled: false
        jiraAuthType: 0
        jiraIssuePrefix: string
        jiraIssueRegex: string
        jiraIssueTransitionAutomatic: false
        jiraIssueTransitionId: string
        mergeRequestsEvents: false
        password: string
        project: string
        projectKey: string
        projectKeys:
            - string
        url: string
        useInheritedSettings: false
        username: string
    

    IntegrationJira Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The IntegrationJira resource accepts the following input properties:

    Password string
    The Jira API token, password, or personal access token to be used with Jira. When your authentication method is basic (jiraauthtype is 0), use an API token for Jira Cloud or a password for Jira Data Center or Jira Server. When your authentication method is a Jira personal access token (jiraauthtype is 1), use the personal access token.
    Project string
    ID of the project you want to activate integration on.
    Url string
    The URL to the JIRA project which is being linked to this GitLab project. For example, https://jira.example.com.
    ApiUrl string
    The base URL to the Jira instance API. Web URL value is used if not set. For example, https://jira-api.example.com.
    CommentOnEventEnabled bool
    Enable comments inside Jira issues on each GitLab event (commit / merge request)
    CommitEvents bool
    Enable notifications for commit events
    IssuesEnabled bool
    Enable viewing Jira issues in GitLab.
    JiraAuthType int
    The authentication method to be used with Jira. 0 means Basic Authentication. 1 means Jira personal access token. Defaults to 0.
    JiraIssuePrefix string
    Prefix to match Jira issue keys.
    JiraIssueRegex string
    Regular expression to match Jira issue keys.
    JiraIssueTransitionAutomatic bool
    Enable automatic issue transitions. Takes precedence over jiraissuetransition_id if enabled. Defaults to false.
    JiraIssueTransitionId string
    The ID of a transition that moves issues to a closed state. You can find this number under the JIRA workflow administration (Administration > Issues > Workflows) by selecting View under Operations of the desired workflow of your project. By default, this ID is set to 2. Note*: importing this field is only supported since GitLab 15.2.
    MergeRequestsEvents bool
    Enable notifications for merge request events
    ProjectKey string
    The short identifier for your JIRA project, all uppercase, e.g., PROJ.
    ProjectKeys List<string>
    Keys of Jira projects. When issues_enabled is true, this setting specifies which Jira projects to view issues from in GitLab.
    UseInheritedSettings bool
    Indicates whether or not to inherit default settings. Defaults to false.
    Username string
    The email or username to be used with Jira. For Jira Cloud use an email, for Jira Data Center and Jira Server use a username. Required when using Basic authentication (jiraauthtype is 0).
    Password string
    The Jira API token, password, or personal access token to be used with Jira. When your authentication method is basic (jiraauthtype is 0), use an API token for Jira Cloud or a password for Jira Data Center or Jira Server. When your authentication method is a Jira personal access token (jiraauthtype is 1), use the personal access token.
    Project string
    ID of the project you want to activate integration on.
    Url string
    The URL to the JIRA project which is being linked to this GitLab project. For example, https://jira.example.com.
    ApiUrl string
    The base URL to the Jira instance API. Web URL value is used if not set. For example, https://jira-api.example.com.
    CommentOnEventEnabled bool
    Enable comments inside Jira issues on each GitLab event (commit / merge request)
    CommitEvents bool
    Enable notifications for commit events
    IssuesEnabled bool
    Enable viewing Jira issues in GitLab.
    JiraAuthType int
    The authentication method to be used with Jira. 0 means Basic Authentication. 1 means Jira personal access token. Defaults to 0.
    JiraIssuePrefix string
    Prefix to match Jira issue keys.
    JiraIssueRegex string
    Regular expression to match Jira issue keys.
    JiraIssueTransitionAutomatic bool
    Enable automatic issue transitions. Takes precedence over jiraissuetransition_id if enabled. Defaults to false.
    JiraIssueTransitionId string
    The ID of a transition that moves issues to a closed state. You can find this number under the JIRA workflow administration (Administration > Issues > Workflows) by selecting View under Operations of the desired workflow of your project. By default, this ID is set to 2. Note*: importing this field is only supported since GitLab 15.2.
    MergeRequestsEvents bool
    Enable notifications for merge request events
    ProjectKey string
    The short identifier for your JIRA project, all uppercase, e.g., PROJ.
    ProjectKeys []string
    Keys of Jira projects. When issues_enabled is true, this setting specifies which Jira projects to view issues from in GitLab.
    UseInheritedSettings bool
    Indicates whether or not to inherit default settings. Defaults to false.
    Username string
    The email or username to be used with Jira. For Jira Cloud use an email, for Jira Data Center and Jira Server use a username. Required when using Basic authentication (jiraauthtype is 0).
    password String
    The Jira API token, password, or personal access token to be used with Jira. When your authentication method is basic (jiraauthtype is 0), use an API token for Jira Cloud or a password for Jira Data Center or Jira Server. When your authentication method is a Jira personal access token (jiraauthtype is 1), use the personal access token.
    project String
    ID of the project you want to activate integration on.
    url String
    The URL to the JIRA project which is being linked to this GitLab project. For example, https://jira.example.com.
    apiUrl String
    The base URL to the Jira instance API. Web URL value is used if not set. For example, https://jira-api.example.com.
    commentOnEventEnabled Boolean
    Enable comments inside Jira issues on each GitLab event (commit / merge request)
    commitEvents Boolean
    Enable notifications for commit events
    issuesEnabled Boolean
    Enable viewing Jira issues in GitLab.
    jiraAuthType Integer
    The authentication method to be used with Jira. 0 means Basic Authentication. 1 means Jira personal access token. Defaults to 0.
    jiraIssuePrefix String
    Prefix to match Jira issue keys.
    jiraIssueRegex String
    Regular expression to match Jira issue keys.
    jiraIssueTransitionAutomatic Boolean
    Enable automatic issue transitions. Takes precedence over jiraissuetransition_id if enabled. Defaults to false.
    jiraIssueTransitionId String
    The ID of a transition that moves issues to a closed state. You can find this number under the JIRA workflow administration (Administration > Issues > Workflows) by selecting View under Operations of the desired workflow of your project. By default, this ID is set to 2. Note*: importing this field is only supported since GitLab 15.2.
    mergeRequestsEvents Boolean
    Enable notifications for merge request events
    projectKey String
    The short identifier for your JIRA project, all uppercase, e.g., PROJ.
    projectKeys List<String>
    Keys of Jira projects. When issues_enabled is true, this setting specifies which Jira projects to view issues from in GitLab.
    useInheritedSettings Boolean
    Indicates whether or not to inherit default settings. Defaults to false.
    username String
    The email or username to be used with Jira. For Jira Cloud use an email, for Jira Data Center and Jira Server use a username. Required when using Basic authentication (jiraauthtype is 0).
    password string
    The Jira API token, password, or personal access token to be used with Jira. When your authentication method is basic (jiraauthtype is 0), use an API token for Jira Cloud or a password for Jira Data Center or Jira Server. When your authentication method is a Jira personal access token (jiraauthtype is 1), use the personal access token.
    project string
    ID of the project you want to activate integration on.
    url string
    The URL to the JIRA project which is being linked to this GitLab project. For example, https://jira.example.com.
    apiUrl string
    The base URL to the Jira instance API. Web URL value is used if not set. For example, https://jira-api.example.com.
    commentOnEventEnabled boolean
    Enable comments inside Jira issues on each GitLab event (commit / merge request)
    commitEvents boolean
    Enable notifications for commit events
    issuesEnabled boolean
    Enable viewing Jira issues in GitLab.
    jiraAuthType number
    The authentication method to be used with Jira. 0 means Basic Authentication. 1 means Jira personal access token. Defaults to 0.
    jiraIssuePrefix string
    Prefix to match Jira issue keys.
    jiraIssueRegex string
    Regular expression to match Jira issue keys.
    jiraIssueTransitionAutomatic boolean
    Enable automatic issue transitions. Takes precedence over jiraissuetransition_id if enabled. Defaults to false.
    jiraIssueTransitionId string
    The ID of a transition that moves issues to a closed state. You can find this number under the JIRA workflow administration (Administration > Issues > Workflows) by selecting View under Operations of the desired workflow of your project. By default, this ID is set to 2. Note*: importing this field is only supported since GitLab 15.2.
    mergeRequestsEvents boolean
    Enable notifications for merge request events
    projectKey string
    The short identifier for your JIRA project, all uppercase, e.g., PROJ.
    projectKeys string[]
    Keys of Jira projects. When issues_enabled is true, this setting specifies which Jira projects to view issues from in GitLab.
    useInheritedSettings boolean
    Indicates whether or not to inherit default settings. Defaults to false.
    username string
    The email or username to be used with Jira. For Jira Cloud use an email, for Jira Data Center and Jira Server use a username. Required when using Basic authentication (jiraauthtype is 0).
    password str
    The Jira API token, password, or personal access token to be used with Jira. When your authentication method is basic (jiraauthtype is 0), use an API token for Jira Cloud or a password for Jira Data Center or Jira Server. When your authentication method is a Jira personal access token (jiraauthtype is 1), use the personal access token.
    project str
    ID of the project you want to activate integration on.
    url str
    The URL to the JIRA project which is being linked to this GitLab project. For example, https://jira.example.com.
    api_url str
    The base URL to the Jira instance API. Web URL value is used if not set. For example, https://jira-api.example.com.
    comment_on_event_enabled bool
    Enable comments inside Jira issues on each GitLab event (commit / merge request)
    commit_events bool
    Enable notifications for commit events
    issues_enabled bool
    Enable viewing Jira issues in GitLab.
    jira_auth_type int
    The authentication method to be used with Jira. 0 means Basic Authentication. 1 means Jira personal access token. Defaults to 0.
    jira_issue_prefix str
    Prefix to match Jira issue keys.
    jira_issue_regex str
    Regular expression to match Jira issue keys.
    jira_issue_transition_automatic bool
    Enable automatic issue transitions. Takes precedence over jiraissuetransition_id if enabled. Defaults to false.
    jira_issue_transition_id str
    The ID of a transition that moves issues to a closed state. You can find this number under the JIRA workflow administration (Administration > Issues > Workflows) by selecting View under Operations of the desired workflow of your project. By default, this ID is set to 2. Note*: importing this field is only supported since GitLab 15.2.
    merge_requests_events bool
    Enable notifications for merge request events
    project_key str
    The short identifier for your JIRA project, all uppercase, e.g., PROJ.
    project_keys Sequence[str]
    Keys of Jira projects. When issues_enabled is true, this setting specifies which Jira projects to view issues from in GitLab.
    use_inherited_settings bool
    Indicates whether or not to inherit default settings. Defaults to false.
    username str
    The email or username to be used with Jira. For Jira Cloud use an email, for Jira Data Center and Jira Server use a username. Required when using Basic authentication (jiraauthtype is 0).
    password String
    The Jira API token, password, or personal access token to be used with Jira. When your authentication method is basic (jiraauthtype is 0), use an API token for Jira Cloud or a password for Jira Data Center or Jira Server. When your authentication method is a Jira personal access token (jiraauthtype is 1), use the personal access token.
    project String
    ID of the project you want to activate integration on.
    url String
    The URL to the JIRA project which is being linked to this GitLab project. For example, https://jira.example.com.
    apiUrl String
    The base URL to the Jira instance API. Web URL value is used if not set. For example, https://jira-api.example.com.
    commentOnEventEnabled Boolean
    Enable comments inside Jira issues on each GitLab event (commit / merge request)
    commitEvents Boolean
    Enable notifications for commit events
    issuesEnabled Boolean
    Enable viewing Jira issues in GitLab.
    jiraAuthType Number
    The authentication method to be used with Jira. 0 means Basic Authentication. 1 means Jira personal access token. Defaults to 0.
    jiraIssuePrefix String
    Prefix to match Jira issue keys.
    jiraIssueRegex String
    Regular expression to match Jira issue keys.
    jiraIssueTransitionAutomatic Boolean
    Enable automatic issue transitions. Takes precedence over jiraissuetransition_id if enabled. Defaults to false.
    jiraIssueTransitionId String
    The ID of a transition that moves issues to a closed state. You can find this number under the JIRA workflow administration (Administration > Issues > Workflows) by selecting View under Operations of the desired workflow of your project. By default, this ID is set to 2. Note*: importing this field is only supported since GitLab 15.2.
    mergeRequestsEvents Boolean
    Enable notifications for merge request events
    projectKey String
    The short identifier for your JIRA project, all uppercase, e.g., PROJ.
    projectKeys List<String>
    Keys of Jira projects. When issues_enabled is true, this setting specifies which Jira projects to view issues from in GitLab.
    useInheritedSettings Boolean
    Indicates whether or not to inherit default settings. Defaults to false.
    username String
    The email or username to be used with Jira. For Jira Cloud use an email, for Jira Data Center and Jira Server use a username. Required when using Basic authentication (jiraauthtype is 0).

    Outputs

    All input properties are implicitly available as output properties. Additionally, the IntegrationJira resource produces the following output properties:

    Active bool
    Whether the integration is active.
    CreatedAt string
    Create time.
    Id string
    The provider-assigned unique ID for this managed resource.
    Title string
    Title.
    UpdatedAt string
    Update time.
    Active bool
    Whether the integration is active.
    CreatedAt string
    Create time.
    Id string
    The provider-assigned unique ID for this managed resource.
    Title string
    Title.
    UpdatedAt string
    Update time.
    active Boolean
    Whether the integration is active.
    createdAt String
    Create time.
    id String
    The provider-assigned unique ID for this managed resource.
    title String
    Title.
    updatedAt String
    Update time.
    active boolean
    Whether the integration is active.
    createdAt string
    Create time.
    id string
    The provider-assigned unique ID for this managed resource.
    title string
    Title.
    updatedAt string
    Update time.
    active bool
    Whether the integration is active.
    created_at str
    Create time.
    id str
    The provider-assigned unique ID for this managed resource.
    title str
    Title.
    updated_at str
    Update time.
    active Boolean
    Whether the integration is active.
    createdAt String
    Create time.
    id String
    The provider-assigned unique ID for this managed resource.
    title String
    Title.
    updatedAt String
    Update time.

    Look up Existing IntegrationJira Resource

    Get an existing IntegrationJira resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: IntegrationJiraState, opts?: CustomResourceOptions): IntegrationJira
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            active: Optional[bool] = None,
            api_url: Optional[str] = None,
            comment_on_event_enabled: Optional[bool] = None,
            commit_events: Optional[bool] = None,
            created_at: Optional[str] = None,
            issues_enabled: Optional[bool] = None,
            jira_auth_type: Optional[int] = None,
            jira_issue_prefix: Optional[str] = None,
            jira_issue_regex: Optional[str] = None,
            jira_issue_transition_automatic: Optional[bool] = None,
            jira_issue_transition_id: Optional[str] = None,
            merge_requests_events: Optional[bool] = None,
            password: Optional[str] = None,
            project: Optional[str] = None,
            project_key: Optional[str] = None,
            project_keys: Optional[Sequence[str]] = None,
            title: Optional[str] = None,
            updated_at: Optional[str] = None,
            url: Optional[str] = None,
            use_inherited_settings: Optional[bool] = None,
            username: Optional[str] = None) -> IntegrationJira
    func GetIntegrationJira(ctx *Context, name string, id IDInput, state *IntegrationJiraState, opts ...ResourceOption) (*IntegrationJira, error)
    public static IntegrationJira Get(string name, Input<string> id, IntegrationJiraState? state, CustomResourceOptions? opts = null)
    public static IntegrationJira get(String name, Output<String> id, IntegrationJiraState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Active bool
    Whether the integration is active.
    ApiUrl string
    The base URL to the Jira instance API. Web URL value is used if not set. For example, https://jira-api.example.com.
    CommentOnEventEnabled bool
    Enable comments inside Jira issues on each GitLab event (commit / merge request)
    CommitEvents bool
    Enable notifications for commit events
    CreatedAt string
    Create time.
    IssuesEnabled bool
    Enable viewing Jira issues in GitLab.
    JiraAuthType int
    The authentication method to be used with Jira. 0 means Basic Authentication. 1 means Jira personal access token. Defaults to 0.
    JiraIssuePrefix string
    Prefix to match Jira issue keys.
    JiraIssueRegex string
    Regular expression to match Jira issue keys.
    JiraIssueTransitionAutomatic bool
    Enable automatic issue transitions. Takes precedence over jiraissuetransition_id if enabled. Defaults to false.
    JiraIssueTransitionId string
    The ID of a transition that moves issues to a closed state. You can find this number under the JIRA workflow administration (Administration > Issues > Workflows) by selecting View under Operations of the desired workflow of your project. By default, this ID is set to 2. Note*: importing this field is only supported since GitLab 15.2.
    MergeRequestsEvents bool
    Enable notifications for merge request events
    Password string
    The Jira API token, password, or personal access token to be used with Jira. When your authentication method is basic (jiraauthtype is 0), use an API token for Jira Cloud or a password for Jira Data Center or Jira Server. When your authentication method is a Jira personal access token (jiraauthtype is 1), use the personal access token.
    Project string
    ID of the project you want to activate integration on.
    ProjectKey string
    The short identifier for your JIRA project, all uppercase, e.g., PROJ.
    ProjectKeys List<string>
    Keys of Jira projects. When issues_enabled is true, this setting specifies which Jira projects to view issues from in GitLab.
    Title string
    Title.
    UpdatedAt string
    Update time.
    Url string
    The URL to the JIRA project which is being linked to this GitLab project. For example, https://jira.example.com.
    UseInheritedSettings bool
    Indicates whether or not to inherit default settings. Defaults to false.
    Username string
    The email or username to be used with Jira. For Jira Cloud use an email, for Jira Data Center and Jira Server use a username. Required when using Basic authentication (jiraauthtype is 0).
    Active bool
    Whether the integration is active.
    ApiUrl string
    The base URL to the Jira instance API. Web URL value is used if not set. For example, https://jira-api.example.com.
    CommentOnEventEnabled bool
    Enable comments inside Jira issues on each GitLab event (commit / merge request)
    CommitEvents bool
    Enable notifications for commit events
    CreatedAt string
    Create time.
    IssuesEnabled bool
    Enable viewing Jira issues in GitLab.
    JiraAuthType int
    The authentication method to be used with Jira. 0 means Basic Authentication. 1 means Jira personal access token. Defaults to 0.
    JiraIssuePrefix string
    Prefix to match Jira issue keys.
    JiraIssueRegex string
    Regular expression to match Jira issue keys.
    JiraIssueTransitionAutomatic bool
    Enable automatic issue transitions. Takes precedence over jiraissuetransition_id if enabled. Defaults to false.
    JiraIssueTransitionId string
    The ID of a transition that moves issues to a closed state. You can find this number under the JIRA workflow administration (Administration > Issues > Workflows) by selecting View under Operations of the desired workflow of your project. By default, this ID is set to 2. Note*: importing this field is only supported since GitLab 15.2.
    MergeRequestsEvents bool
    Enable notifications for merge request events
    Password string
    The Jira API token, password, or personal access token to be used with Jira. When your authentication method is basic (jiraauthtype is 0), use an API token for Jira Cloud or a password for Jira Data Center or Jira Server. When your authentication method is a Jira personal access token (jiraauthtype is 1), use the personal access token.
    Project string
    ID of the project you want to activate integration on.
    ProjectKey string
    The short identifier for your JIRA project, all uppercase, e.g., PROJ.
    ProjectKeys []string
    Keys of Jira projects. When issues_enabled is true, this setting specifies which Jira projects to view issues from in GitLab.
    Title string
    Title.
    UpdatedAt string
    Update time.
    Url string
    The URL to the JIRA project which is being linked to this GitLab project. For example, https://jira.example.com.
    UseInheritedSettings bool
    Indicates whether or not to inherit default settings. Defaults to false.
    Username string
    The email or username to be used with Jira. For Jira Cloud use an email, for Jira Data Center and Jira Server use a username. Required when using Basic authentication (jiraauthtype is 0).
    active Boolean
    Whether the integration is active.
    apiUrl String
    The base URL to the Jira instance API. Web URL value is used if not set. For example, https://jira-api.example.com.
    commentOnEventEnabled Boolean
    Enable comments inside Jira issues on each GitLab event (commit / merge request)
    commitEvents Boolean
    Enable notifications for commit events
    createdAt String
    Create time.
    issuesEnabled Boolean
    Enable viewing Jira issues in GitLab.
    jiraAuthType Integer
    The authentication method to be used with Jira. 0 means Basic Authentication. 1 means Jira personal access token. Defaults to 0.
    jiraIssuePrefix String
    Prefix to match Jira issue keys.
    jiraIssueRegex String
    Regular expression to match Jira issue keys.
    jiraIssueTransitionAutomatic Boolean
    Enable automatic issue transitions. Takes precedence over jiraissuetransition_id if enabled. Defaults to false.
    jiraIssueTransitionId String
    The ID of a transition that moves issues to a closed state. You can find this number under the JIRA workflow administration (Administration > Issues > Workflows) by selecting View under Operations of the desired workflow of your project. By default, this ID is set to 2. Note*: importing this field is only supported since GitLab 15.2.
    mergeRequestsEvents Boolean
    Enable notifications for merge request events
    password String
    The Jira API token, password, or personal access token to be used with Jira. When your authentication method is basic (jiraauthtype is 0), use an API token for Jira Cloud or a password for Jira Data Center or Jira Server. When your authentication method is a Jira personal access token (jiraauthtype is 1), use the personal access token.
    project String
    ID of the project you want to activate integration on.
    projectKey String
    The short identifier for your JIRA project, all uppercase, e.g., PROJ.
    projectKeys List<String>
    Keys of Jira projects. When issues_enabled is true, this setting specifies which Jira projects to view issues from in GitLab.
    title String
    Title.
    updatedAt String
    Update time.
    url String
    The URL to the JIRA project which is being linked to this GitLab project. For example, https://jira.example.com.
    useInheritedSettings Boolean
    Indicates whether or not to inherit default settings. Defaults to false.
    username String
    The email or username to be used with Jira. For Jira Cloud use an email, for Jira Data Center and Jira Server use a username. Required when using Basic authentication (jiraauthtype is 0).
    active boolean
    Whether the integration is active.
    apiUrl string
    The base URL to the Jira instance API. Web URL value is used if not set. For example, https://jira-api.example.com.
    commentOnEventEnabled boolean
    Enable comments inside Jira issues on each GitLab event (commit / merge request)
    commitEvents boolean
    Enable notifications for commit events
    createdAt string
    Create time.
    issuesEnabled boolean
    Enable viewing Jira issues in GitLab.
    jiraAuthType number
    The authentication method to be used with Jira. 0 means Basic Authentication. 1 means Jira personal access token. Defaults to 0.
    jiraIssuePrefix string
    Prefix to match Jira issue keys.
    jiraIssueRegex string
    Regular expression to match Jira issue keys.
    jiraIssueTransitionAutomatic boolean
    Enable automatic issue transitions. Takes precedence over jiraissuetransition_id if enabled. Defaults to false.
    jiraIssueTransitionId string
    The ID of a transition that moves issues to a closed state. You can find this number under the JIRA workflow administration (Administration > Issues > Workflows) by selecting View under Operations of the desired workflow of your project. By default, this ID is set to 2. Note*: importing this field is only supported since GitLab 15.2.
    mergeRequestsEvents boolean
    Enable notifications for merge request events
    password string
    The Jira API token, password, or personal access token to be used with Jira. When your authentication method is basic (jiraauthtype is 0), use an API token for Jira Cloud or a password for Jira Data Center or Jira Server. When your authentication method is a Jira personal access token (jiraauthtype is 1), use the personal access token.
    project string
    ID of the project you want to activate integration on.
    projectKey string
    The short identifier for your JIRA project, all uppercase, e.g., PROJ.
    projectKeys string[]
    Keys of Jira projects. When issues_enabled is true, this setting specifies which Jira projects to view issues from in GitLab.
    title string
    Title.
    updatedAt string
    Update time.
    url string
    The URL to the JIRA project which is being linked to this GitLab project. For example, https://jira.example.com.
    useInheritedSettings boolean
    Indicates whether or not to inherit default settings. Defaults to false.
    username string
    The email or username to be used with Jira. For Jira Cloud use an email, for Jira Data Center and Jira Server use a username. Required when using Basic authentication (jiraauthtype is 0).
    active bool
    Whether the integration is active.
    api_url str
    The base URL to the Jira instance API. Web URL value is used if not set. For example, https://jira-api.example.com.
    comment_on_event_enabled bool
    Enable comments inside Jira issues on each GitLab event (commit / merge request)
    commit_events bool
    Enable notifications for commit events
    created_at str
    Create time.
    issues_enabled bool
    Enable viewing Jira issues in GitLab.
    jira_auth_type int
    The authentication method to be used with Jira. 0 means Basic Authentication. 1 means Jira personal access token. Defaults to 0.
    jira_issue_prefix str
    Prefix to match Jira issue keys.
    jira_issue_regex str
    Regular expression to match Jira issue keys.
    jira_issue_transition_automatic bool
    Enable automatic issue transitions. Takes precedence over jiraissuetransition_id if enabled. Defaults to false.
    jira_issue_transition_id str
    The ID of a transition that moves issues to a closed state. You can find this number under the JIRA workflow administration (Administration > Issues > Workflows) by selecting View under Operations of the desired workflow of your project. By default, this ID is set to 2. Note*: importing this field is only supported since GitLab 15.2.
    merge_requests_events bool
    Enable notifications for merge request events
    password str
    The Jira API token, password, or personal access token to be used with Jira. When your authentication method is basic (jiraauthtype is 0), use an API token for Jira Cloud or a password for Jira Data Center or Jira Server. When your authentication method is a Jira personal access token (jiraauthtype is 1), use the personal access token.
    project str
    ID of the project you want to activate integration on.
    project_key str
    The short identifier for your JIRA project, all uppercase, e.g., PROJ.
    project_keys Sequence[str]
    Keys of Jira projects. When issues_enabled is true, this setting specifies which Jira projects to view issues from in GitLab.
    title str
    Title.
    updated_at str
    Update time.
    url str
    The URL to the JIRA project which is being linked to this GitLab project. For example, https://jira.example.com.
    use_inherited_settings bool
    Indicates whether or not to inherit default settings. Defaults to false.
    username str
    The email or username to be used with Jira. For Jira Cloud use an email, for Jira Data Center and Jira Server use a username. Required when using Basic authentication (jiraauthtype is 0).
    active Boolean
    Whether the integration is active.
    apiUrl String
    The base URL to the Jira instance API. Web URL value is used if not set. For example, https://jira-api.example.com.
    commentOnEventEnabled Boolean
    Enable comments inside Jira issues on each GitLab event (commit / merge request)
    commitEvents Boolean
    Enable notifications for commit events
    createdAt String
    Create time.
    issuesEnabled Boolean
    Enable viewing Jira issues in GitLab.
    jiraAuthType Number
    The authentication method to be used with Jira. 0 means Basic Authentication. 1 means Jira personal access token. Defaults to 0.
    jiraIssuePrefix String
    Prefix to match Jira issue keys.
    jiraIssueRegex String
    Regular expression to match Jira issue keys.
    jiraIssueTransitionAutomatic Boolean
    Enable automatic issue transitions. Takes precedence over jiraissuetransition_id if enabled. Defaults to false.
    jiraIssueTransitionId String
    The ID of a transition that moves issues to a closed state. You can find this number under the JIRA workflow administration (Administration > Issues > Workflows) by selecting View under Operations of the desired workflow of your project. By default, this ID is set to 2. Note*: importing this field is only supported since GitLab 15.2.
    mergeRequestsEvents Boolean
    Enable notifications for merge request events
    password String
    The Jira API token, password, or personal access token to be used with Jira. When your authentication method is basic (jiraauthtype is 0), use an API token for Jira Cloud or a password for Jira Data Center or Jira Server. When your authentication method is a Jira personal access token (jiraauthtype is 1), use the personal access token.
    project String
    ID of the project you want to activate integration on.
    projectKey String
    The short identifier for your JIRA project, all uppercase, e.g., PROJ.
    projectKeys List<String>
    Keys of Jira projects. When issues_enabled is true, this setting specifies which Jira projects to view issues from in GitLab.
    title String
    Title.
    updatedAt String
    Update time.
    url String
    The URL to the JIRA project which is being linked to this GitLab project. For example, https://jira.example.com.
    useInheritedSettings Boolean
    Indicates whether or not to inherit default settings. Defaults to false.
    username String
    The email or username to be used with Jira. For Jira Cloud use an email, for Jira Data Center and Jira Server use a username. Required when using Basic authentication (jiraauthtype is 0).

    Import

    You can import a gitlab_integration_jira state using the project ID, e.g.

    $ pulumi import gitlab:index/integrationJira:IntegrationJira jira 1
    

    To learn more about importing existing cloud resources, see Importing resources.

    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 v8.4.1 published on Tuesday, Sep 24, 2024 by Pulumi