How to get the list of unreleased versions in a project through Jira Command Line Interface (CLI)

This article explains how to get the list of unreleased versions in a project using Jira Command Line Interface (CLI).

Instructions

  1. To get the list of unreleased versions, use the –options parameter with the value as excludeReleased as shown below. Note that versions are project-specific, so to get the list of versions always use the --project parameter along with --getVersionList. The command to use:

    --action getVersionList --options excludeReleased --project CT 




  2. If excludeReleased is not used, then the list of all versions available in a project can be obtained. The command to use:

    --action getVersionList --project CT 



The command works for cloud as well as self-hosted Jira instances. Refer to these documentations for more information on the actions used:

 getVersionList

--project

--options