ServiceJiraArgs

data class ServiceJiraArgs(val apiUrl: Output<String>? = null, val commentOnEventEnabled: Output<Boolean>? = null, val commitEvents: Output<Boolean>? = null, val issuesEnabled: Output<Boolean>? = null, val jiraAuthType: Output<Int>? = null, val jiraIssuePrefix: Output<String>? = null, val jiraIssueRegex: Output<String>? = null, val jiraIssueTransitionAutomatic: Output<Boolean>? = null, val jiraIssueTransitionId: Output<String>? = null, val mergeRequestsEvents: Output<Boolean>? = null, val password: Output<String>? = null, val project: Output<String>? = null, val projectKey: Output<String>? = null, val projectKeys: Output<List<String>>? = null, val url: Output<String>? = null, val useInheritedSettings: Output<Boolean>? = null, val username: Output<String>? = null) : ConvertibleToJava<ServiceJiraArgs>

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

Constructors

Link copied to clipboard
constructor(apiUrl: Output<String>? = null, commentOnEventEnabled: Output<Boolean>? = null, commitEvents: Output<Boolean>? = null, issuesEnabled: Output<Boolean>? = null, jiraAuthType: Output<Int>? = null, jiraIssuePrefix: Output<String>? = null, jiraIssueRegex: Output<String>? = null, jiraIssueTransitionAutomatic: Output<Boolean>? = null, jiraIssueTransitionId: Output<String>? = null, mergeRequestsEvents: Output<Boolean>? = null, password: Output<String>? = null, project: Output<String>? = null, projectKey: Output<String>? = null, projectKeys: Output<List<String>>? = null, url: Output<String>? = null, useInheritedSettings: Output<Boolean>? = 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 issuesEnabled: Output<Boolean>? = null

Enable viewing Jira issues in GitLab.

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

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>? = null

Prefix to match Jira issue keys.

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

Regular expression to match Jira issue keys.

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

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

Enable notifications for merge request events

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

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

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 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 useInheritedSettings: Output<Boolean>? = null

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

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

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).

Functions

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