On this page

Move-JiraVersion

SYNOPSIS

Moves an existing Version in JIRA

SYNTAX

ByAfter (Default)

Move-JiraVersion [-Version] <JiraPS.Version> [-After] <JiraPS.Version> [[-Credential] <PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]

ByPosition

Move-JiraVersion [-Version] <JiraPS.Version> [-Position] <String> [[-Credential] <PSCredential>] [-WhatIf] [-Confirm] [<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.

EXAMPLES

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.

PARAMETERS

-Version

Version Object or ID to move.

Type: Object
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True
Accept wildcard characters: False

-Position

The new Position for the Version

Type: String
Parameter Sets: ByPosition
Aliases:
Accepted values: First, Last, Earlier, Later

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-After

Version Object or ID to move Version after.

Type: Object
Parameter Sets: ByAfter
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Credential

Credentials to use to connect to JIRA.
If not specified, this function will use anonymous access.

Type: PSCredential
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

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

Get-JiraVersion

New-JiraVersion

Remove-JiraVersion

Set-JiraVersion