This article explains how to get all the list of Jira project components list using the Jira Command Line Interface (CLI) app.
Instructions
Use the getComponentList action to retrieve the list of all users along with the detailed data to align with the project, file and outputFormat parameters.
...
components defined for a project.
Option # 1:
Execute this CLI command to get the
...
list of components displayed on the terminal/command prompt.
Code Block theme Midnight --action getComponentList --project
...
"
...
learn1" --outputFormat 999
...
Here are the parameters
...
used in the
...
command:
project - outputFormat -project: Specify the name of the project.
- file - Specify the name of the CSV file.
outputFormat: Specify one of these values to get the respective data.
- 1 -
- Basic details.
- 2 -
- With project
- .
- 999 - All.
Option # 2:
Execute this CLI command to get the list of components in the CSV file.
Code Block theme Midnight --action getComponentList --project "learn1" --file "list.csv" --outputFormat 999
- file: Specify the name of the CSV file.
The output file from the above command will be similar to:
...
is similar to the below-mentioned screenshot:
If the --outputFormat is 1 then the results will be as shown below:
If the --outputFormat is 2 then the results will be as shown below:
If the --outputFormat is 999 then the results will be as shown below: