< Back

New-JiraVersion

Thu Jan 16, 2020 8:09 am

NAME New-JiraVersion



SYNOPSIS

Creates a new FixVersion in JIRA





SYNTAX

New-JiraVersion [-InputObject] <Object> [-Credential <PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]



New-JiraVersion [-Name] <String> [-Project] <Object> [-Description <String>] [-Archived <Boolean>] [-Released

<Boolean>] [-ReleaseDate <DateTime>] [-StartDate <DateTime>] [-Credential <PSCredential>] [-WhatIf] [-Confirm]

[<CommonParameters>]





DESCRIPTION

This function creates a new FixVersion in JIRA.





PARAMETERS

-InputObject <Object>

Version object that should be created on the server.



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



-Name <String>

Name of the version to create.



Required? true

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Project <Object>

The Project ID



Required? true

Position? 2

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Description <String>

Description of the version.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Archived <Boolean>

Create the version as archived.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Released <Boolean>

Create the version as released.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-ReleaseDate <DateTime>

Date of the release.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-StartDate <DateTime>

Date of the release.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Credential <PSCredential>

Credentials to use to connect to JIRA.

If not specified, this function will use anonymous access.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

Shows what would happen if the cmdlet runs. The cmdlet is not run.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

[JiraPS.Version]







NOTES





This function requires either the `-Credential` parameter to be passed or a persistent JIRA session. See

`New-JiraSession` for more details. If neither are supplied, this function will run with anonymous access to

JIRA.



-------------------------- EXAMPLE 1 --------------------------



New-JiraVersion -Name '1.0.0.0' -Project "RD"



This example creates a new JIRA Version named "1.0.0.0" in project "RD".

-------------------------- EXAMPLE 2 --------------------------



$project = Get-JiraProject -Project "RD"

New-JiraVersion -Name '1.0.0.0' -Project $project -ReleaseDate "2000-12-31"



Create a new Version in Project "RD" with a set release date.

-------------------------- EXAMPLE 3 --------------------------



$version = Get-JiraVersion -Name "1.0.0.0" -Project "RD"

$version = $version.Project.Key "TEST"

$version | New-JiraVersion



This example duplicates the Version named "1.0.0.0" in Project "RD" to Project "TEST".



RELATED LINKS

Online Version: https://atlassianps.org/docs/JiraPS/com ... raVersion/

Get-JiraVersion

Remove-JiraVersion

Set-JiraVersion

Get-JiraProject

Move-JiraVersion