< Back
Get-AtlassianSession
Post
NAME Get-AtlassianSession
SYNOPSIS
Get one or more JIRAIssue objects.
SYNTAX
Get-AtlassianSession [[-Path] <String>] [-NoNewSession] [<CommonParameters>]
DESCRIPTION
The Get-AtlassianSession cmdlet gets the current AtlassianSession loaded in the custom session variable (name
specified in settings.xml) or creates a new one if none exists.
PARAMETERS
-Path <String>
Specifies the path to the encrypted session file to import.
An encrypted session file can only be loaded by the same user account that saved it.
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-NoNewSession [<SwitchParameter>]
Specifies you do not want to save the AtlassianSession into the custom session variable.
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
None
You cannot pipe input to this cmdlet.
OUTPUTS
JIRAIssue
Returns one or more JIRAIssue objects.
NOTES
The AtlassianSession object has a Save(<Path>) method that can be called to save an encrypted session file to
disk.
Encrypted session files can only be used by the same user account.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-JIRAIssue -Jql 'project=TEST'
Gets all issues returned by the JQL filter 'project=TEST' for the currently loaded session.
RELATED LINKS
SYNOPSIS
Get one or more JIRAIssue objects.
SYNTAX
Get-AtlassianSession [[-Path] <String>] [-NoNewSession] [<CommonParameters>]
DESCRIPTION
The Get-AtlassianSession cmdlet gets the current AtlassianSession loaded in the custom session variable (name
specified in settings.xml) or creates a new one if none exists.
PARAMETERS
-Path <String>
Specifies the path to the encrypted session file to import.
An encrypted session file can only be loaded by the same user account that saved it.
Required? false
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
-NoNewSession [<SwitchParameter>]
Specifies you do not want to save the AtlassianSession into the custom session variable.
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
None
You cannot pipe input to this cmdlet.
OUTPUTS
JIRAIssue
Returns one or more JIRAIssue objects.
NOTES
The AtlassianSession object has a Save(<Path>) method that can be called to save an encrypted session file to
disk.
Encrypted session files can only be used by the same user account.
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Get-JIRAIssue -Jql 'project=TEST'
Gets all issues returned by the JQL filter 'project=TEST' for the currently loaded session.
RELATED LINKS