IntegrationJira

class IntegrationJira : KotlinCustomResource

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

Properties

Link copied to clipboard
val active: Output<Boolean>

Whether the integration is active.

Link copied to clipboard
val apiUrl: Output<String>

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

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

Link copied to clipboard
val commitEvents: Output<Boolean>

Enable notifications for commit events

Link copied to clipboard
val createdAt: Output<String>

Create time.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val issuesEvents: Output<Boolean>

Enable notifications for issues events.

Link copied to clipboard

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>

Enable notifications for job events.

Link copied to clipboard

Enable notifications for merge request events

Link copied to clipboard
val noteEvents: Output<Boolean>

Enable notifications for note events.

Link copied to clipboard
val password: Output<String>

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

Link copied to clipboard
val pipelineEvents: Output<Boolean>

Enable notifications for pipeline events.

Link copied to clipboard
val project: Output<String>

ID of the project you want to activate integration on.

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

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val pushEvents: Output<Boolean>

Enable notifications for push events.

Link copied to clipboard
val tagPushEvents: Output<Boolean>

Enable notifications for tag_push events.

Link copied to clipboard
val title: Output<String>

Title.

Link copied to clipboard
val updatedAt: Output<String>

Update time.

Link copied to clipboard
val url: Output<String>

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 urn: Output<String>
Link copied to clipboard
val username: Output<String>

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