Skip to content

jira create-project-version

create a new version of project.

Description

create a new version of project.

Synopsis

jira create-project-version
    --site <site>
    [--description <description>]
    --name <name>
    [--archived]
    [--released]
    [--expand <expand>]
    <project>
    [--move_unfixed_issues_to <move_unfixed_issues_to>]

Arguments

site - (string)

    
     Example: --site "site-1"
     Default: localhost:8081      Attributes: required

description - (string)

     The description of the version.
     Example: --description "description-1"
     Default: _None_      Attributes: optional

name - (string)

     The unique name of the version. Required when creating a version.
     Example: --name "name-1"
     Default: _None_      Attributes: required

     Validation:
         max length: 255

archived - (bool)

     Indicates that the version is archived.
     Example: --archived
     Default: _None_      Attributes: optional

released - (bool)

     Indicates that the version is released. If the version is released a request to release again is ignored. Not applicable when creating a version. Optional when updating a version.
     Example: --released
     Default: _None_      Attributes: optional

expand - (string)

     This parameter accepts operations, which returns actions that can be performed on the version.
     Example: --expand "expand-1"
     Default: _None_      Attributes: optional

project - (string)

     The project ID (case sensitive)
     Example: "project-1"
     Default: _None_      Attributes: required

move_unfixed_issues_to - (string)

     The URL of the self link to the version to which all unfixed issues are moved when a version is released. Not applicable when creating a version. Optional when updating a version.
     Example: --move_unfixed_issues_to "move_unfixed_issues_to-1"
     Default: _None_      Attributes: optional

Examples

jira create-project-version --description "description-1" --name "name-1" --archived --released --expand "expand-1" "project-1" --move_unfixed_issues_to "move_unfixed_issues_to-1"

Access Control

To use this command, you need access to the following:

Field Value
Action "create"
Service Type "jira"
Service Instance
Namespace
Object Type "project-version"
Object ID

Please see Access Control for details.