This article explains how to create multiple sub-tasks for from JQL filter results using the Jira Command Line Interface (CLI) app.
Instructions
Create a filter called Demo with required the JQL query as shown below:
Code Block theme Midnight project = "Support Request" AND issuetype = Task AND resolution is EMPTY
- Create a text file (named as subtasks.txt in this example) with createIssue action, and fill specify the required data with summary, parent, and type parameters as shown in the following screenshot parameters as shown:
Combine the actions runFromIssueList and run with actions, Demo filter, and, the text file to create multiple sub-tasks for from the JQL results. This This example works because the text the text file contains the createIssue action and it has action with the relevant parameters.
Code Block theme Midnight --action runFromIssueList --jql "filter = Demo" --common "--action run --file "/Users/appfireuser001/Documents/subtasks.txt" "
Info |
---|
It is recommended to test this scenario in a test environment or run the action with the --simulate parameter to verify the behavior before implementing it in productiondeploying. |