Skip to end of banner
Go to start of banner

How to get all the components list using Jira Command Line Interface (CLI)

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

This article explains how to get the list of Jira project components using the Jira Command Line Interface (CLI) app.

Instructions

Use getComponentList action to retrieve the list of components defined for a project.

Execute the below CLI command to get the list of components.

--action getComponentList --project "learn1" --file "list.csv" --outputFormat 999

Here are the parameters used in the command:

  • 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.

The output file from the above command 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:



  • No labels