Table plus |
---|
applyColStyleToCell | true |
---|
heading | 0 |
---|
columnTypes | s,s,s,s |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | admUnshareFilteradmShareFilter(filterId, rights, sharePermIdsharePerm) | Package | adm | Alias | | Pkg Usage | [use adm; unshareFiltershareFilter(filterId, rights, sharePermIdsharePerm);] | |
Description
Excerpt |
---|
|
Un- Shares a filter. |
Un-shares Shares a filter. Removes the share by id. You will find the shares in the filter structure (including their ids)Share types may be 'project', 'projectRole', 'user', 'group', 'loggedin', 'global'.
The value of the share must reflect either the user id, group id or project key, or an array, pipe separated, of project key and role id.
Parameters
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
filterId | int | Yes | The filter id | sharePermIdrights | int | Yes | The rights. 1 means share permission id.. There's not much documentation in Atlassian API about this | sharePerm | JSharePermission | Yes | The grantee | |
Return Type
boolean
Example
Code Block |
---|
|
admUnshareFilterJFilter f = admGetFilterByName(name)[0];
JSharePermission perm;
perm.type="project";
perm.object="TEST";
admShareFilter(f.id, 1, perm);
perm.type="group";
perm.object="site-admins";
admShareFilter(f.id, 1, 10035perm); |
Un-Shares the filter with some share perm given idthe project and the group
See also
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = "filter_functionroutine" and space = currentSpace ( ) |
---|
labels | array_functionsroutines |
---|
|