1. Packages
  2. Rootly
  3. API Docs
  4. WorkflowTaskCreateJiraIssue
Rootly v1.0.1 published on Friday, Jun 2, 2023 by Rootly

rootly.WorkflowTaskCreateJiraIssue

Explore with Pulumi AI

rootly logo
Rootly v1.0.1 published on Friday, Jun 2, 2023 by Rootly

    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:

    TaskParams WorkflowTaskCreateJiraIssueTaskParams

    The parameters for this workflow task.

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

    SkipOnFailure bool

    Skip workflow task if any failures

    TaskParams WorkflowTaskCreateJiraIssueTaskParamsArgs

    The parameters for this workflow task.

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

    SkipOnFailure bool

    Skip workflow task if any failures

    taskParams WorkflowTaskCreateJiraIssueTaskParams

    The parameters for this workflow task.

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

    skipOnFailure Boolean

    Skip workflow task if any failures

    taskParams WorkflowTaskCreateJiraIssueTaskParams

    The parameters for this workflow task.

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

    skipOnFailure boolean

    Skip workflow task if any failures

    task_params WorkflowTaskCreateJiraIssueTaskParamsArgs

    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_failure bool

    Skip workflow task if any failures

    taskParams Property Map

    The parameters for this workflow task.

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

    skipOnFailure Boolean

    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.
    The following state arguments are supported:
    Enabled bool

    Enable/disable this workflow task

    Position int

    The position of the workflow task (1 being top of list)

    SkipOnFailure bool

    Skip workflow task if any failures

    TaskParams WorkflowTaskCreateJiraIssueTaskParams

    The parameters for this workflow task.

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

    SkipOnFailure bool

    Skip workflow task if any failures

    TaskParams WorkflowTaskCreateJiraIssueTaskParamsArgs

    The parameters for this workflow task.

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

    skipOnFailure Boolean

    Skip workflow task if any failures

    taskParams WorkflowTaskCreateJiraIssueTaskParams

    The parameters for this workflow task.

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

    skipOnFailure boolean

    Skip workflow task if any failures

    taskParams WorkflowTaskCreateJiraIssueTaskParams

    The parameters for this workflow task.

    workflowId 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_failure bool

    Skip workflow task if any failures

    task_params WorkflowTaskCreateJiraIssueTaskParamsArgs

    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)

    skipOnFailure Boolean

    Skip workflow task if any failures

    taskParams Property Map

    The parameters for this workflow task.

    workflowId String

    The ID of the parent workflow

    Supporting Types

    WorkflowTaskCreateJiraIssueTaskParams, WorkflowTaskCreateJiraIssueTaskParamsArgs

    IssueType Dictionary<string, object>
    ProjectKey string
    Title string
    AssignUserEmail string
    CustomFieldsMapping string
    Description string
    DueDate string
    Labels string
    Priority Dictionary<string, object>
    ReporterUserEmail string
    Status Dictionary<string, object>
    TaskType string
    UpdatePayload string
    IssueType map[string]interface{}
    ProjectKey string
    Title string
    AssignUserEmail string
    CustomFieldsMapping string
    Description string
    DueDate string
    Labels string
    Priority map[string]interface{}
    ReporterUserEmail string
    Status map[string]interface{}
    TaskType string
    UpdatePayload string
    issueType Map<String,Object>
    projectKey String
    title String
    assignUserEmail String
    customFieldsMapping String
    description String
    dueDate String
    labels String
    priority Map<String,Object>
    reporterUserEmail String
    status Map<String,Object>
    taskType String
    updatePayload String
    issueType {[key: string]: any}
    projectKey string
    title string
    assignUserEmail string
    customFieldsMapping string
    description string
    dueDate string
    labels string
    priority {[key: string]: any}
    reporterUserEmail string
    status {[key: string]: any}
    taskType string
    updatePayload string
    issueType Map<Any>
    projectKey String
    title String
    assignUserEmail String
    customFieldsMapping String
    description String
    dueDate String
    labels String
    priority Map<Any>
    reporterUserEmail String
    status Map<Any>
    taskType String
    updatePayload String

    Package Details

    Repository
    rootly rootlyhq/pulumi-rootly
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the rootly Terraform Provider.

    rootly logo
    Rootly v1.0.1 published on Friday, Jun 2, 2023 by Rootly