Removes an existing issue from JIRA.
Remove-JiraIssue [-InputObject] <Object[]> [-IncludeSubTasks] [[-Credential] <PSCredential>] [-Force] [-WhatIf]
[-Confirm] [<CommonParameters>]
Remove-JiraIssue [-IssueId] <String[]> [-IncludeSubTasks] [[-Credential] <PSCredential>] [-Force] [-WhatIf]
[-Confirm] [<CommonParameters>]
This function will remove an issue from Jira. Deleting an issue removes it permanently from JIRA, including all of its comments and attachments.
If you have completed an issue, it should usually be resolved or closed - not deleted.
If an issue includes sub-tasks, these are deleted as well.
Remove-JiraIssue -IssueId ABC-123
Removes issue [ABC-123] from JIRA.
Remove-JiraIssue -IssueId ABC-124 -IncludeSubTasks
Removes issue [ABC-124] from JIRA, including any subtasks therein.
Get-JiraIssue -Query "Project = ABC AND label = NeedsDeletion" | Remove-JiraIssue -IncludeSubTasks
Removes all issues from project ABC (including their subtasks) that have the label “NeedsDeletion”.
One or more issues to delete, specified as JiraPS.Issue
objects (e.g. from Get-JiraIssue
)
Type: Object[]
Parameter Sets: ByInputObject
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
One or more issues to delete, either:
Type: String[]
Parameter Sets: ByInputObject
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Removes any subtasks associated with the issue(s) to be deleted.
If the issue has no subtasks, this parameter is ignored. If the issue has subtasks and this parameter is missing, then the issue will not be deleted and an error will be returned.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Credentials to use to connect to JIRA.
Type: PSCredential
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Suppress user confirmation.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Prompts you for confirmation before running the cmdlet.
Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
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).
If the issue has subtasks you must include the parameter IncludeSubTasks to delete the issue. You cannot delete an issue without its subtasks also being deleted.
This function requires either the `-Credential` parameter to be passed or a persistent JIRA session. See `New-JiraSession` for more details.