< Back
Remove-JiraSession
Post
NAME Remove-JiraSession
SYNOPSIS
[DEPRECATED] Removes a persistent JIRA authenticated session
SYNTAX
Remove-JiraSession [[-Session] <Object>] [<CommonParameters>]
DESCRIPTION
> This command has currently no functionality
This function removes a persistent JIRA authenticated session and closes the session for JIRA. This can be used to
"log out" of JIRA once work is complete.
If called with the Session parameter, this function will attempt to close the provided `JiraPS.Session` object.
If called with no parameters, this function will close the saved JIRA session in the module's PrivateData.
PARAMETERS
-Session <Object>
A Jira session to be closed.
If not specified, this function will use a saved session.
Required? false
Position? 1
Default value None
Accept pipeline input? True (ByValue)
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.Session]
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 --------------------------
New-JiraSession -Credential (Get-Credential jiraUsername)
Get-JiraIssue TEST-01
Remove-JiraSession
This example creates a JIRA session for jiraUsername, runs Get-JiraIssue, and closes the JIRA session.
-------------------------- EXAMPLE 2 --------------------------
$s = New-JiraSession -Credential (Get-Credential jiraUsername)
Remove-JiraSession $s
This example creates a JIRA session and saves it to a variable, then uses the variable reference to close the
session.
RELATED LINKS
Online Version: https://atlassianps.org/docs/JiraPS/com ... raSession/
Get-JiraSession
New-JiraSession
SYNOPSIS
[DEPRECATED] Removes a persistent JIRA authenticated session
SYNTAX
Remove-JiraSession [[-Session] <Object>] [<CommonParameters>]
DESCRIPTION
> This command has currently no functionality
This function removes a persistent JIRA authenticated session and closes the session for JIRA. This can be used to
"log out" of JIRA once work is complete.
If called with the Session parameter, this function will attempt to close the provided `JiraPS.Session` object.
If called with no parameters, this function will close the saved JIRA session in the module's PrivateData.
PARAMETERS
-Session <Object>
A Jira session to be closed.
If not specified, this function will use a saved session.
Required? false
Position? 1
Default value None
Accept pipeline input? True (ByValue)
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.Session]
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 --------------------------
New-JiraSession -Credential (Get-Credential jiraUsername)
Get-JiraIssue TEST-01
Remove-JiraSession
This example creates a JIRA session for jiraUsername, runs Get-JiraIssue, and closes the JIRA session.
-------------------------- EXAMPLE 2 --------------------------
$s = New-JiraSession -Credential (Get-Credential jiraUsername)
Remove-JiraSession $s
This example creates a JIRA session and saves it to a variable, then uses the variable reference to close the
session.
RELATED LINKS
Online Version: https://atlassianps.org/docs/JiraPS/com ... raSession/
Get-JiraSession
New-JiraSession