rootly.WorkflowTaskCreateJiraIssue
Explore with Pulumi AI
Manages workflow create_jira_issue task.
Example Usage
using Pulumi;
using Rootly = Pulumi.Rootly;
class MyStack : Stack
{
public MyStack()
{
var jiraWorkflowIncident = new Rootly.WorkflowIncident("jiraWorkflowIncident", new Rootly.WorkflowIncidentArgs
{
Description = "Open Jira ticket whenever incident starts",
TriggerParams = new Rootly.Inputs.WorkflowIncidentTriggerParamsArgs
{
Triggers =
{
"incident_created",
},
IncidentConditionKind = "IS",
IncidentKinds =
{
"normal",
},
IncidentConditionStatus = "IS",
IncidentStatuses =
{
"started",
},
},
Enabled = true,
});
var jiraWorkflowTaskCreateJiraIssue = new Rootly.WorkflowTaskCreateJiraIssue("jiraWorkflowTaskCreateJiraIssue", new Rootly.WorkflowTaskCreateJiraIssueArgs
{
WorkflowId = jiraWorkflowIncident.Id,
SkipOnFailure = false,
Enabled = true,
TaskParams = new Rootly.Inputs.WorkflowTaskCreateJiraIssueTaskParamsArgs
{
Title = "{{ incident.title }}",
Description = "{{ incident.summary }}",
ProjectKey = "ROOT",
IssueType =
{
{ "id", "10001" },
{ "name", "Task" },
},
Status =
{
{ "id", "10000" },
{ "name", "To Do" },
},
Labels = "{{ incident.environment_slugs | concat: incident.service_slugs | concat: incident.functionality_slugs | concat: incident.group_slugs | join: \",\" }}",
},
});
}
}
package main
import (
"github.com/pulumi/pulumi-rootly/sdk/go/rootly"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
jiraWorkflowIncident, err := rootly.NewWorkflowIncident(ctx, "jiraWorkflowIncident", &rootly.WorkflowIncidentArgs{
Description: pulumi.String("Open Jira ticket whenever incident starts"),
TriggerParams: &WorkflowIncidentTriggerParamsArgs{
Triggers: pulumi.StringArray{
pulumi.String("incident_created"),
},
IncidentConditionKind: pulumi.String("IS"),
IncidentKinds: pulumi.StringArray{
pulumi.String("normal"),
},
IncidentConditionStatus: pulumi.String("IS"),
IncidentStatuses: pulumi.StringArray{
pulumi.String("started"),
},
},
Enabled: pulumi.Bool(true),
})
if err != nil {
return err
}
_, err = rootly.NewWorkflowTaskCreateJiraIssue(ctx, "jiraWorkflowTaskCreateJiraIssue", &rootly.WorkflowTaskCreateJiraIssueArgs{
WorkflowId: jiraWorkflowIncident.ID(),
SkipOnFailure: pulumi.Bool(false),
Enabled: pulumi.Bool(true),
TaskParams: &WorkflowTaskCreateJiraIssueTaskParamsArgs{
Title: pulumi.String("{{ incident.title }}"),
Description: pulumi.String("{{ incident.summary }}"),
ProjectKey: pulumi.String("ROOT"),
IssueType: pulumi.AnyMap{
"id": pulumi.Any("10001"),
"name": pulumi.Any("Task"),
},
Status: pulumi.AnyMap{
"id": pulumi.Any("10000"),
"name": pulumi.Any("To Do"),
},
Labels: pulumi.String("{{ incident.environment_slugs | concat: incident.service_slugs | concat: incident.functionality_slugs | concat: incident.group_slugs | join: \",\" }}"),
},
})
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_rootly as rootly
jira_workflow_incident = rootly.WorkflowIncident("jiraWorkflowIncident",
description="Open Jira ticket whenever incident starts",
trigger_params=rootly.WorkflowIncidentTriggerParamsArgs(
triggers=["incident_created"],
incident_condition_kind="IS",
incident_kinds=["normal"],
incident_condition_status="IS",
incident_statuses=["started"],
),
enabled=True)
jira_workflow_task_create_jira_issue = rootly.WorkflowTaskCreateJiraIssue("jiraWorkflowTaskCreateJiraIssue",
workflow_id=jira_workflow_incident.id,
skip_on_failure=False,
enabled=True,
task_params=rootly.WorkflowTaskCreateJiraIssueTaskParamsArgs(
title="{{ incident.title }}",
description="{{ incident.summary }}",
project_key="ROOT",
issue_type={
"id": "10001",
"name": "Task",
},
status={
"id": "10000",
"name": "To Do",
},
labels="{{ incident.environment_slugs | concat: incident.service_slugs | concat: incident.functionality_slugs | concat: incident.group_slugs | join: \",\" }}",
))
import * as pulumi from "@pulumi/pulumi";
import * as rootly from "@pulumi/rootly";
const jiraWorkflowIncident = new rootly.WorkflowIncident("jiraWorkflowIncident", {
description: "Open Jira ticket whenever incident starts",
triggerParams: {
triggers: ["incident_created"],
incidentConditionKind: "IS",
incidentKinds: ["normal"],
incidentConditionStatus: "IS",
incidentStatuses: ["started"],
},
enabled: true,
});
const jiraWorkflowTaskCreateJiraIssue = new rootly.WorkflowTaskCreateJiraIssue("jiraWorkflowTaskCreateJiraIssue", {
workflowId: jiraWorkflowIncident.id,
skipOnFailure: false,
enabled: true,
taskParams: {
title: "{{ incident.title }}",
description: "{{ incident.summary }}",
projectKey: "ROOT",
issueType: {
id: "10001",
name: "Task",
},
status: {
id: "10000",
name: "To Do",
},
labels: "{{ incident.environment_slugs | concat: incident.service_slugs | concat: incident.functionality_slugs | concat: incident.group_slugs | join: \",\" }}",
},
});
Coming soon!
Create WorkflowTaskCreateJiraIssue Resource
new WorkflowTaskCreateJiraIssue(name: string, args: WorkflowTaskCreateJiraIssueArgs, opts?: CustomResourceOptions);
@overload
def WorkflowTaskCreateJiraIssue(resource_name: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
position: Optional[int] = None,
skip_on_failure: Optional[bool] = None,
task_params: Optional[WorkflowTaskCreateJiraIssueTaskParamsArgs] = None,
workflow_id: Optional[str] = None)
@overload
def WorkflowTaskCreateJiraIssue(resource_name: str,
args: WorkflowTaskCreateJiraIssueArgs,
opts: Optional[ResourceOptions] = None)
func NewWorkflowTaskCreateJiraIssue(ctx *Context, name string, args WorkflowTaskCreateJiraIssueArgs, opts ...ResourceOption) (*WorkflowTaskCreateJiraIssue, error)
public WorkflowTaskCreateJiraIssue(string name, WorkflowTaskCreateJiraIssueArgs args, CustomResourceOptions? opts = null)
public WorkflowTaskCreateJiraIssue(String name, WorkflowTaskCreateJiraIssueArgs args)
public WorkflowTaskCreateJiraIssue(String name, WorkflowTaskCreateJiraIssueArgs args, CustomResourceOptions options)
type: rootly:WorkflowTaskCreateJiraIssue
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WorkflowTaskCreateJiraIssueArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args WorkflowTaskCreateJiraIssueArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args WorkflowTaskCreateJiraIssueArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args WorkflowTaskCreateJiraIssueArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args WorkflowTaskCreateJiraIssueArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
WorkflowTaskCreateJiraIssue Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The WorkflowTaskCreateJiraIssue resource accepts the following input properties:
- Task
Params WorkflowTask Create Jira Issue Task Params The parameters for this workflow task.
- Workflow
Id string The ID of the parent workflow
- Enabled bool
Enable/disable this workflow task
- Position int
The position of the workflow task (1 being top of list)
- Skip
On boolFailure Skip workflow task if any failures
- Task
Params WorkflowTask Create Jira Issue Task Params Args The parameters for this workflow task.
- Workflow
Id string The ID of the parent workflow
- Enabled bool
Enable/disable this workflow task
- Position int
The position of the workflow task (1 being top of list)
- Skip
On boolFailure Skip workflow task if any failures
- task
Params WorkflowTask Create Jira Issue Task Params The parameters for this workflow task.
- workflow
Id String The ID of the parent workflow
- enabled Boolean
Enable/disable this workflow task
- position Integer
The position of the workflow task (1 being top of list)
- skip
On BooleanFailure Skip workflow task if any failures
- task
Params WorkflowTask Create Jira Issue Task Params The parameters for this workflow task.
- workflow
Id string The ID of the parent workflow
- enabled boolean
Enable/disable this workflow task
- position number
The position of the workflow task (1 being top of list)
- skip
On booleanFailure Skip workflow task if any failures
- task_
params WorkflowTask Create Jira Issue Task Params Args The parameters for this workflow task.
- workflow_
id str The ID of the parent workflow
- enabled bool
Enable/disable this workflow task
- position int
The position of the workflow task (1 being top of list)
- skip_
on_ boolfailure Skip workflow task if any failures
- task
Params Property Map The parameters for this workflow task.
- workflow
Id String The ID of the parent workflow
- enabled Boolean
Enable/disable this workflow task
- position Number
The position of the workflow task (1 being top of list)
- skip
On BooleanFailure Skip workflow task if any failures
Outputs
All input properties are implicitly available as output properties. Additionally, the WorkflowTaskCreateJiraIssue resource produces the following output properties:
- Id string
The provider-assigned unique ID for this managed resource.
- Id string
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
- id string
The provider-assigned unique ID for this managed resource.
- id str
The provider-assigned unique ID for this managed resource.
- id String
The provider-assigned unique ID for this managed resource.
Look up Existing WorkflowTaskCreateJiraIssue Resource
Get an existing WorkflowTaskCreateJiraIssue 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?: WorkflowTaskCreateJiraIssueState, opts?: CustomResourceOptions): WorkflowTaskCreateJiraIssue
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
position: Optional[int] = None,
skip_on_failure: Optional[bool] = None,
task_params: Optional[WorkflowTaskCreateJiraIssueTaskParamsArgs] = None,
workflow_id: Optional[str] = None) -> WorkflowTaskCreateJiraIssue
func GetWorkflowTaskCreateJiraIssue(ctx *Context, name string, id IDInput, state *WorkflowTaskCreateJiraIssueState, opts ...ResourceOption) (*WorkflowTaskCreateJiraIssue, error)
public static WorkflowTaskCreateJiraIssue Get(string name, Input<string> id, WorkflowTaskCreateJiraIssueState? state, CustomResourceOptions? opts = null)
public static WorkflowTaskCreateJiraIssue get(String name, Output<String> id, WorkflowTaskCreateJiraIssueState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- 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.
- Enabled bool
Enable/disable this workflow task
- Position int
The position of the workflow task (1 being top of list)
- Skip
On boolFailure Skip workflow task if any failures
- Task
Params WorkflowTask Create Jira Issue Task Params The parameters for this workflow task.
- Workflow
Id string The ID of the parent workflow
- Enabled bool
Enable/disable this workflow task
- Position int
The position of the workflow task (1 being top of list)
- Skip
On boolFailure Skip workflow task if any failures
- Task
Params WorkflowTask Create Jira Issue Task Params Args The parameters for this workflow task.
- Workflow
Id string The ID of the parent workflow
- enabled Boolean
Enable/disable this workflow task
- position Integer
The position of the workflow task (1 being top of list)
- skip
On BooleanFailure Skip workflow task if any failures
- task
Params WorkflowTask Create Jira Issue Task Params The parameters for this workflow task.
- workflow
Id String The ID of the parent workflow
- enabled boolean
Enable/disable this workflow task
- position number
The position of the workflow task (1 being top of list)
- skip
On booleanFailure Skip workflow task if any failures
- task
Params WorkflowTask Create Jira Issue Task Params The parameters for this workflow task.
- workflow
Id string The ID of the parent workflow
- enabled bool
Enable/disable this workflow task
- position int
The position of the workflow task (1 being top of list)
- skip_
on_ boolfailure Skip workflow task if any failures
- task_
params WorkflowTask Create Jira Issue Task Params Args The parameters for this workflow task.
- workflow_
id str The ID of the parent workflow
- enabled Boolean
Enable/disable this workflow task
- position Number
The position of the workflow task (1 being top of list)
- skip
On BooleanFailure Skip workflow task if any failures
- task
Params Property Map The parameters for this workflow task.
- workflow
Id String The ID of the parent workflow
Supporting Types
WorkflowTaskCreateJiraIssueTaskParams, WorkflowTaskCreateJiraIssueTaskParamsArgs
- Issue
Type Dictionary<string, object> - Project
Key string - Title string
- Assign
User stringEmail - Custom
Fields stringMapping - Description string
- Due
Date string - Labels string
- Priority Dictionary<string, object>
- Reporter
User stringEmail - Status Dictionary<string, object>
- Task
Type string - Update
Payload string
- Issue
Type map[string]interface{} - Project
Key string - Title string
- Assign
User stringEmail - Custom
Fields stringMapping - Description string
- Due
Date string - Labels string
- Priority map[string]interface{}
- Reporter
User stringEmail - Status map[string]interface{}
- Task
Type string - Update
Payload string
- issue
Type Map<String,Object> - project
Key String - title String
- assign
User StringEmail - custom
Fields StringMapping - description String
- due
Date String - labels String
- priority Map<String,Object>
- reporter
User StringEmail - status Map<String,Object>
- task
Type String - update
Payload String
- issue
Type {[key: string]: any} - project
Key string - title string
- assign
User stringEmail - custom
Fields stringMapping - description string
- due
Date string - labels string
- priority {[key: string]: any}
- reporter
User stringEmail - status {[key: string]: any}
- task
Type string - update
Payload string
- issue_
type Mapping[str, Any] - project_
key str - title str
- assign_
user_ stremail - custom_
fields_ strmapping - description str
- due_
date str - labels str
- priority Mapping[str, Any]
- reporter_
user_ stremail - status Mapping[str, Any]
- task_
type str - update_
payload str
- issue
Type Map<Any> - project
Key String - title String
- assign
User StringEmail - custom
Fields StringMapping - description String
- due
Date String - labels String
- priority Map<Any>
- reporter
User StringEmail - status Map<Any>
- task
Type String - update
Payload String
Package Details
- Repository
- rootly rootlyhq/pulumi-rootly
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
rootly
Terraform Provider.