Share a Filter with other users.
Add-JiraFilterPermission [-Filter] <JiraPS.Filter> [-Type] <String>
[[-Value] <String>] [[-Credential] <PSCredential>] [-WhatIf] [-Confirm]
[<CommonParameters>]
Add-JiraFilterPermission [-Id] <UInt32> [-Type] <String> [[-Value] <String>]
[[-Credential] <PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]
Share a Filter with other users, such as “Group”, “Project”, “ProjectRole”, “Authenticated” or “Global”.
Add-JiraFilterPermission -Filter (Get-JiraFilter 12345) -Type "Global"
#-------
Add-JiraFilterPermission -Id 12345 -Type "Global"
Two methods of sharing Filter 12345 with everyone.
12345 | Add-JiraFilterPermission -Type "Authenticated"
Share Filter 12345 with authenticated users.
The Id could be read from a file.
Get-JiraFilter 12345 | Add-JiraFilterPermission -Type "Group" -Value "administrators"
Share Filter 12345 only with users in the administrators groups.
Filter object to which the permission should be applied
Type: JiraPS.Filter
Parameter Sets: ByInputObject
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Id of the Filter to which the permission should be applied
Id can be passed over the pipeline when reading from a file.
Type: UInt32[]
Parameter Sets: ById
Aliases:
Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Type of the permission to add
Type: String
Parameter Sets: (All)
Aliases:
Accepted values: Group, Project, ProjectRole, Authenticated, Global
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Value for the Type of the permission.
The Value differs per Type of the permission.
Here is a table to know what Value to provide:
|Type |Value |Source |
|————-|———————|—————————————————-|
|Group |Name of the Group |Can be retrieved with (Get-JiraGroup ...).Name
|
|Project |Id of the Project |Can be retrieved with (Get-JiraProject ...).Id
|
|ProjectRole |Id of the ProjectRole|Can be retrieved with (Get-JiraProjectRole ...).Id
|
|Authenticated| must be null | |
|Global | must be null | |
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
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: 3
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 functions does not validate the input for -Value
.
In case the value is invalid, unexpected or missing, the API will response with
an error.
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.