< Back

Move-JiraVersion

Thu Jan 16, 2020 8:06 am

NAME Move-JiraVersion



SYNOPSIS

Moves an existing Version in JIRA





SYNTAX

Move-JiraVersion [-Version] <Object> [-Position] {First | Last | Earlier | Later} [[-Credential] <PSCredential>]

[<CommonParameters>]



Move-JiraVersion [-Version] <Object> [-After] <Object> [[-Credential] <PSCredential>] [<CommonParameters>]





DESCRIPTION

This function moves the Version for an existing Project in JIRA. Moving the Version modifies the order/sequence of

the Version in relation to other Versions.





PARAMETERS

-Version <Object>

Version Object or ID to move.



Required? true

Position? 1

Default value None

Accept pipeline input? True

Accept wildcard characters? false



-Position <String>

The new Position for the Version



Required? true

Position? 2

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-After <Object>

Version Object or ID to move Version after.



Required? true

Position? 2

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? 3

Default value None

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

[JiraPS.Version]







OUTPUTS



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



Move-JiraVersion -Version 10 -After 9



This example moves the Version with ID 10 after the Version with ID 9.

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



Move-JiraVersion -Version $myVersionObject -After $otherVersionObject



This example moves the Version object after the other Version object.

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



Move-JiraVersion -Version $myVersionObject -Position Earliest



This example moves the Version object to the earliest position.



RELATED LINKS

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

Get-JiraVersion

New-JiraVersion

Remove-JiraVersion

Set-JiraVersion