Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This article explains how to create multiple sub-tasks for from JQL filter results using the Jira Command Line Interface (CLI) app.

Instructions

  1. Create a filter called Demo with required the JQL query as shown below:

    Code Block
    themeMidnight
    project = "Support Request" AND issuetype = Task AND resolution is EMPTY


  2. Create a text file with CreateIssue action and fill the required data with (named as subtasks.txt in this example) with createIssue action, and specify the summaryparent, and type parameters as shown in the following screenshot parameters as shown:
  3. Combine the actions  runFromIssueList and run to  actions, Demo filter, and, the text file to create multiple sub-tasks for from the JQL results. This This example works because text the text file contains  createIssue action and it is  as the parameter names for CreateIssuethe createIssue action with the relevant parameters.

    Code Block
    themeMidnight
    --action runFromIssueList --jql "filter = Demo" --common "--action run --file "/Users/appfireuser001/Documents/subtasks.txt" "
    CreateIssue


Info

It is recommended to test this scenario in a test environment or run the action with the --simulate parameter to verify the behaviour before implementing it in productionbehavior before deploying.