IntegrationJiraArgs

data class IntegrationJiraArgs(val apiUrl: Output<String>? = null, val commentOnEventEnabled: Output<Boolean>? = null, val commitEvents: Output<Boolean>? = null, val issuesEvents: Output<Boolean>? = null, val jiraIssueTransitionId: Output<String>? = null, val jobEvents: Output<Boolean>? = null, val mergeRequestsEvents: Output<Boolean>? = null, val noteEvents: Output<Boolean>? = null, val password: Output<String>? = null, val pipelineEvents: Output<Boolean>? = null, val project: Output<String>? = null, val projectKey: Output<String>? = null, val pushEvents: Output<Boolean>? = null, val tagPushEvents: Output<Boolean>? = null, val url: Output<String>? = null, val username: Output<String>? = null) : ConvertibleToJava<IntegrationJiraArgs>

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("awesomeProject", {
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("awesomeProject",
description="My awesome project.",
visibility_level="public")
jira = gitlab.IntegrationJira("jira",
project=awesome_project.id,
url="https://jira.example.com",
username="user",
password="mypass")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using GitLab = Pulumi.GitLab;
return await Deployment.RunAsync(() =>
{
var awesomeProject = new GitLab.Project("awesomeProject", new()
{
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 main
import (
"github.com/pulumi/pulumi-gitlab/sdk/v6/go/gitlab"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
awesomeProject, err := gitlab.NewProject(ctx, "awesomeProject", &gitlab.ProjectArgs{
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
})
}
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()
.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
properties:
description: My awesome project.
visibilityLevel: public
jira:
type: gitlab:IntegrationJira
properties:
project: ${awesomeProject.id}
url: https://jira.example.com
username: user
password: mypass

Import

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

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

Constructors

Link copied to clipboard
constructor(apiUrl: Output<String>? = null, commentOnEventEnabled: Output<Boolean>? = null, commitEvents: Output<Boolean>? = null, issuesEvents: Output<Boolean>? = null, jiraIssueTransitionId: Output<String>? = null, jobEvents: Output<Boolean>? = null, mergeRequestsEvents: Output<Boolean>? = null, noteEvents: Output<Boolean>? = null, password: Output<String>? = null, pipelineEvents: Output<Boolean>? = null, project: Output<String>? = null, projectKey: Output<String>? = null, pushEvents: Output<Boolean>? = null, tagPushEvents: Output<Boolean>? = null, url: Output<String>? = null, username: Output<String>? = null)

Properties

Link copied to clipboard
val apiUrl: Output<String>? = null

The base URL to the Jira instance API. Web URL value is used if not set. For example, https://jira-api.example.com.

Link copied to clipboard
val commentOnEventEnabled: Output<Boolean>? = null

Enable comments inside Jira issues on each GitLab event (commit / merge request)

Link copied to clipboard
val commitEvents: Output<Boolean>? = null

Enable notifications for commit events

Link copied to clipboard
val issuesEvents: Output<Boolean>? = null

Enable notifications for issues events.

Link copied to clipboard
val jiraIssueTransitionId: Output<String>? = null

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.

Link copied to clipboard
val jobEvents: Output<Boolean>? = null

Enable notifications for job events.

Link copied to clipboard
val mergeRequestsEvents: Output<Boolean>? = null

Enable notifications for merge request events

Link copied to clipboard
val noteEvents: Output<Boolean>? = null

Enable notifications for note events.

Link copied to clipboard
val password: Output<String>? = null

The password of the user created to be used with GitLab/JIRA.

Link copied to clipboard
val pipelineEvents: Output<Boolean>? = null

Enable notifications for pipeline events.

Link copied to clipboard
val project: Output<String>? = null

ID of the project you want to activate integration on.

Link copied to clipboard
val projectKey: Output<String>? = null

The short identifier for your JIRA project, all uppercase, e.g., PROJ.

Link copied to clipboard
val pushEvents: Output<Boolean>? = null

Enable notifications for push events.

Link copied to clipboard
val tagPushEvents: Output<Boolean>? = null

Enable notifications for tag_push events.

Link copied to clipboard
val url: Output<String>? = null

The URL to the JIRA project which is being linked to this GitLab project. For example, https://jira.example.com.

Link copied to clipboard
val username: Output<String>? = null

The username of the user created to be used with GitLab/JIRA.

Functions

Link copied to clipboard
open override fun toJava(): IntegrationJiraArgs