Skip to main content
Skip table of contents

Sub-tasks creation for existing issue

Use Case: Apply template to an existing issue. Create QA sub-tasks on User Story transition

Automation Trigger: Work Item Transition

  1. Prepare the Template, enable Automation, and prepare the payload using Payload Builder:

    1. Choose “Apply Templates” as the operation

    2. Select “Create Children Only

      Perpare Payload. Subtasks only.png
  2. Create Automation Rule

    1. Trigger: Work Item Transition

      1. From: In Progress

      2. To: Done

    2. Condition applied: Issue Type equals “Story”

    3. Action: Send Web Request

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

    5. HTTP method: POST

    6. Web Request Body: Custom Data

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

    8. Save and Enable Automation Rule

      Automation Rule.png

      Code:

      JSON
      {
        "operation": "apply-template",
        "issueId": "{{issue.id}}",
        "createChildrenOnly": true
      }
  3. Test Automation Rule: once user story transitioned to “Done” - set of subtasks created 🎉

    Created subtasks.png
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.