Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

admShareFilteradmUnshareFilter(filterId, rights, sharePermsharePermId)

Package

adm

Alias

Pkg Usage

[use adm; shareFilterunshareFilter(filterId, rights, sharePermsharePermId);]

Description

Excerpt
hiddentrue
Un-Shares a filter.

Shares Un-shares a filter. 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.Removes the share by id. You will find the shares in the filter structure (including their ids)

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

filterId

int

Yes

The filter id

rightssharePermId

int

Yes

The rights. 1 means share . There's not much documentation in Atlassian API about this

sharePerm

JSharePermission

Yes

The grantee

permission id.

Return Type

boolean

Example

Code Block
languagejs
JFilter f = admGetFilterByName(name)[0];
    JSharePermission perm;
    perm.type="project";
    perm.object="TEST";
    
    admShareFilteradmUnshareFilter(f.id, 1, perm);
    
    perm.type="group";
    perm.object="site-admins";
    admShareFilter(f.id, 1, perm);

...

10035);

Un-Shares the filter with some share perm given id

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "filter_routine" and space = currentSpace ( )
labelsarray_routines