This article explains how to create multiple sub-tasks for JQL filter results using Jira Command Line Interface (CLI).
Instructions
Create a filter called Demo with required JQL query as shown below:
Code Block project = "Support Request" AND issuetype = Task AND resolution is EMPTY
- Create a text file with createIssue action and fill the required data with summary, parent, type parameters as shown in the following screenshot:
Combine the actions runFromIssueList and run to with Demo filter and text file to create multiple sub-tasks for JQL results. This example works because the text file contains createIssue action createIssue action and it is as the parameter names for createIssuehas the relevant parameters.
CreateIssueCode 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 behaviour before behavior before implementing it in production. |