ServiceJira
This resource allows you to manage Jira integration.
Example Usage
using Pulumi;
using GitLab = Pulumi.GitLab;
class MyStack : Stack
{
public MyStack()
{
var awesomeProject = new GitLab.Project("awesomeProject", new GitLab.ProjectArgs
{
Description = "My awesome project.",
VisibilityLevel = "public",
});
var jira = new GitLab.ServiceJira("jira", new GitLab.ServiceJiraArgs
{
Password = "mypass",
Project = awesomeProject.Id,
Url = "https://jira.example.com",
Username = "user",
});
}
}
Coming soon!
import pulumi
import pulumi_gitlab as gitlab
awesome_project = gitlab.Project("awesomeProject",
description="My awesome project.",
visibility_level="public")
jira = gitlab.ServiceJira("jira",
password="mypass",
project=awesome_project.id,
url="https://jira.example.com",
username="user")import * as pulumi from "@pulumi/pulumi";
import * as gitlab from "@pulumi/gitlab";
const awesomeProject = new gitlab.Project("awesome_project", {
description: "My awesome project.",
visibilityLevel: "public",
});
const jira = new gitlab.ServiceJira("jira", {
password: "mypass",
project: awesomeProject.id,
url: "https://jira.example.com",
username: "user",
});Create a ServiceJira Resource
new ServiceJira(name: string, args: ServiceJiraArgs, opts?: CustomResourceOptions);def ServiceJira(resource_name, opts=None, comment_on_event_enabled=None, commit_events=None, jira_issue_transition_id=None, merge_requests_events=None, password=None, project=None, project_key=None, url=None, username=None, __props__=None);func NewServiceJira(ctx *Context, name string, args ServiceJiraArgs, opts ...ResourceOption) (*ServiceJira, error)public ServiceJira(string name, ServiceJiraArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ServiceJiraArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ServiceJiraArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceJiraArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
ServiceJira Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The ServiceJira resource accepts the following input properties:
- Password string
The password of the user created to be used with GitLab/JIRA.
- 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.
- Username string
The username of the user created to be used with GitLab/JIRA.
- Comment
On boolEvent Enabled Enable comments inside Jira issues on each GitLab event (commit / merge request)
- Commit
Events bool Enable notifications for commit events
- Jira
Issue stringTransition Id 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.
- Merge
Requests boolEvents Enable notifications for merge request events
- Project
Key string The short identifier for your JIRA project, all uppercase, e.g., PROJ.
- Password string
The password of the user created to be used with GitLab/JIRA.
- 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.
- Username string
The username of the user created to be used with GitLab/JIRA.
- Comment
On boolEvent Enabled Enable comments inside Jira issues on each GitLab event (commit / merge request)
- Commit
Events bool Enable notifications for commit events
- Jira
Issue stringTransition Id 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.
- Merge
Requests boolEvents Enable notifications for merge request events
- Project
Key string The short identifier for your JIRA project, all uppercase, e.g., PROJ.
- password string
The password of the user created to be used with GitLab/JIRA.
- 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.
- username string
The username of the user created to be used with GitLab/JIRA.
- comment
On booleanEvent Enabled Enable comments inside Jira issues on each GitLab event (commit / merge request)
- commit
Events boolean Enable notifications for commit events
- jira
Issue stringTransition Id 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.
- merge
Requests booleanEvents Enable notifications for merge request events
- project
Key string The short identifier for your JIRA project, all uppercase, e.g., PROJ.
- password str
The password of the user created to be used with GitLab/JIRA.
- 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.
- username str
The username of the user created to be used with GitLab/JIRA.
- comment_
on_ boolevent_ enabled Enable comments inside Jira issues on each GitLab event (commit / merge request)
- commit_
events bool Enable notifications for commit events
- jira_
issue_ strtransition_ id 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.
- merge_
requests_ boolevents Enable notifications for merge request events
- project_
key str The short identifier for your JIRA project, all uppercase, e.g., PROJ.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServiceJira resource produces the following output properties:
- active bool
- created_
at str - id str
- The provider-assigned unique ID for this managed resource.
- title str
- updated_
at str
Look up an Existing ServiceJira Resource
Get an existing ServiceJira 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?: ServiceJiraState, opts?: CustomResourceOptions): ServiceJirastatic get(resource_name, id, opts=None, active=None, comment_on_event_enabled=None, commit_events=None, created_at=None, jira_issue_transition_id=None, merge_requests_events=None, password=None, project=None, project_key=None, title=None, updated_at=None, url=None, username=None, __props__=None);func GetServiceJira(ctx *Context, name string, id IDInput, state *ServiceJiraState, opts ...ResourceOption) (*ServiceJira, error)public static ServiceJira Get(string name, Input<string> id, ServiceJiraState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Active bool
- Comment
On boolEvent Enabled Enable comments inside Jira issues on each GitLab event (commit / merge request)
- Commit
Events bool Enable notifications for commit events
- Created
At string - Jira
Issue stringTransition Id 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.
- Merge
Requests boolEvents Enable notifications for merge request events
- Password string
The password of the user created to be used with GitLab/JIRA.
- Project string
ID of the project you want to activate integration on.
- Project
Key string The short identifier for your JIRA project, all uppercase, e.g., PROJ.
- Title string
- Updated
At string - Url string
The URL to the JIRA project which is being linked to this GitLab project. For example, https://jira.example.com.
- Username string
The username of the user created to be used with GitLab/JIRA.
- Active bool
- Comment
On boolEvent Enabled Enable comments inside Jira issues on each GitLab event (commit / merge request)
- Commit
Events bool Enable notifications for commit events
- Created
At string - Jira
Issue stringTransition Id 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.
- Merge
Requests boolEvents Enable notifications for merge request events
- Password string
The password of the user created to be used with GitLab/JIRA.
- Project string
ID of the project you want to activate integration on.
- Project
Key string The short identifier for your JIRA project, all uppercase, e.g., PROJ.
- Title string
- Updated
At string - Url string
The URL to the JIRA project which is being linked to this GitLab project. For example, https://jira.example.com.
- Username string
The username of the user created to be used with GitLab/JIRA.
- active boolean
- comment
On booleanEvent Enabled Enable comments inside Jira issues on each GitLab event (commit / merge request)
- commit
Events boolean Enable notifications for commit events
- created
At string - jira
Issue stringTransition Id 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.
- merge
Requests booleanEvents Enable notifications for merge request events
- password string
The password of the user created to be used with GitLab/JIRA.
- project string
ID of the project you want to activate integration on.
- project
Key string The short identifier for your JIRA project, all uppercase, e.g., PROJ.
- title string
- updated
At string - url string
The URL to the JIRA project which is being linked to this GitLab project. For example, https://jira.example.com.
- username string
The username of the user created to be used with GitLab/JIRA.
- active bool
- comment_
on_ boolevent_ enabled Enable comments inside Jira issues on each GitLab event (commit / merge request)
- commit_
events bool Enable notifications for commit events
- created_
at str - jira_
issue_ strtransition_ id 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.
- merge_
requests_ boolevents Enable notifications for merge request events
- password str
The password of the user created to be used with GitLab/JIRA.
- 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.
- title str
- updated_
at str - url str
The URL to the JIRA project which is being linked to this GitLab project. For example, https://jira.example.com.
- username str
The username of the user created to be used with GitLab/JIRA.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gitlab
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
gitlabTerraform Provider.