Easy Templates for Jira Cloud
Breadcrumbs

Create issues once a Service Desk ticket is raised

Use Case: Create an Employee Onboarding ticket when HR requester raise a Service Desk ticket

Automation Trigger: Issue (Work item) Created

Description: Assume you have a Service Desk project where team members can submit HR-related tickets. The goal is to establish tasks for a new employee onboarding process in a different project.

  1. Prepare Templates: Use the same approach as in the general example . Enable Automation, and prepare the payload using Payload Builder:

    1. Add (optional) Variables to consistently track the Employee-related data, like: Name, Department, StartDate. Assume that the Service Desk request form has a separate field for every requested value.

    2. Choose “Create Issues” as the operation

    3. Choose the Project where you want to create issues

      EmplOn_Tpl.png
    4. Repeat for every template you want to use in the Automation Rule


  1. Create Automation Rule

    1. Trigger: Issue (Work item) Created

    2. Action: Send Web Request

    3. Use Web Request URL specified in the Template’s automation settings

    4. HTTP method: POST

    5. Web Request Body: Custom Data

    6. Use Payload as Custom data copied from the Template’s automation settings

    7. Add Smart Values to get information dynamically from the created issue custom fields

    8. Save and Enable Automation Rule:

      EmplOn_rule.png


      Code:

      {
        "operation": "create-issues",
        "projectId": "10002",
        "variableValues": {
          "department": "{{issue.department}}",
          "employee name": "{{issue.employee.displayName}}",
          "job role": "{{issue.role}}",
          "manager name": "{{issue.manager.displayName}}",
          "start date": "{{issue.startDate}}"
        }
      }
      
  2. Test Automation Rule