ServiceJira

class ServiceJira : KotlinCustomResource

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

This resource is deprecated. use gitlab.IntegrationJirainstead! 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.ServiceJira("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.ServiceJira("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("awesome_project", new()
{
Name = "awesome_project",
Description = "My awesome project.",
VisibilityLevel = "public",
});
var jira = new GitLab.ServiceJira("jira", new()
{
Project = awesomeProject.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.NewServiceJira(ctx, "jira", &gitlab.ServiceJiraArgs{
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.ServiceJira;
import com.pulumi.gitlab.ServiceJiraArgs;
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 ServiceJira("jira", ServiceJiraArgs.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:ServiceJira
properties:
project: ${awesomeProject.id}
url: https://jira.example.com
username: user
password: mypass

Import

Starting in Terraform v1.5.0 you can use an import block to import gitlab_service_jira. For example: terraform import { to = gitlab_service_jira.example id = "see CLI command below for ID" } Import using the CLI is supported using the following syntax: You can import a gitlab_service_jira state using the project ID, e.g.

$ pulumi import gitlab:index/serviceJira:ServiceJira 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 issuesEnabled: Output<Boolean>?

Enable viewing Jira issues in GitLab.

Link copied to clipboard
val jiraAuthType: Output<Int>?

The authentication method to be used with Jira. 0 means Basic Authentication. 1 means Jira personal access token. Defaults to 0.

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

Prefix to match Jira issue keys.

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

Regular expression to match Jira issue keys.

Link copied to clipboard
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.

Link copied to clipboard

Enable notifications for merge request events

Link copied to clipboard
val password: Output<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.

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 projectKeys: Output<List<String>>?

Keys of Jira projects. When issues_enabled is true, this setting specifies which Jira projects to view issues from in GitLab.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
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

Indicates whether or not to inherit default settings. Defaults to false.

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