Syntax
shareFilter(filterId, shareType, param1, param2)
Package
Alias
Pkg Usage
Changes the ownership of an existing filter.
Parameter name
Type
Required
Description
filterId
Number
Yes
The id of the filter to share
shareType
String
Options are GLOBAL, GROUP, PROJECT, PROJECT_UNKOWN
param1
Name or ID of group or project that filter should be shared with
param2
Name of ID of project role when sharing with project
Boolean
Returns true if the filter was successfully shared.
boolean success = shareFilter(1000, "PROJECT", "TP", 10200)