Make changes to an existing Filter.
Set-JiraFilter [-InputObject] <Object> [[-Name] <String>] [[-Description] <String>] [[-JQL] <String>]
[-Favorite] [[-Credential] <PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]
Make changes to an existing Filter.
If no changing parameter is provided, no action will be performed.
Set-JiraFilter -InputObject (Get-JiraFilter "12345") -Name "NewName"
Changes the name of filter “12345” to “NewName”
$filterData = @{
InputObject = Get-JiraFilter "12345"
Description = "A new description"
JQL = "project = TV AND type = Bug"
Favorite = $true
}
Set-JiraFilter @filterData
Changes the description and JQL of filter “12345” and make it a favorite
Get-JiraFilter -Favorite |
Where name -notlike "My*" |
Set-JiraFilter -Favorite $false
Remove all favorite filters where the name does not start with “My”
Filter object to be changed.
Object can be retrieved with Get-JiraFilter
Type: JiraPS.Filter
Parameter Sets: (All)
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
New value for the filter’s Name.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
New value for the filter’s Description.
Can be an empty string.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
New value for the filter’s JQL string which the filter uses for matching issues.
More about JQL at https://confluence.atlassian.com/display/JIRA/Advanced+Searching
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Boolean flag if the filter should be marked as favorite for the user.
Type: Boolean
Parameter Sets: (All)
Aliases: Favourite
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
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: 2
Default value: None
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).
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.