Skip to end of banner
Go to start of banner

admAddGroupsToGroup

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

Looking for the documentation on the newest versions of SIL Engine and the Simple Issue Language for Jira 8? Click here and leave these dusty old pages behind!

Availability

This routine is available starting with  SIL Engine™ 4.5.6.


Syntax

admAddGroupsToGroup(groupsToJoin, childNames)

Alias

addGroupsToGroup(groupsToJoin, childNames)

Description

Add the provided groups to the specified groups if they are not already added.

Parameters

Parameter name

Type

Required

Description

Groups to joinArray of stringsYesGroup names that the child group should be added to.
Child namesArray of stringsYesChild names that identifies the child groups to be added to the groups.


Return type

boolean

Returns "true" if operation succeeded.

Example 1

admAddGroupsToGroup("ParentGroup", "ChildGroup");

Result: The "ChildGroup will be added as child to the "ParentGroup".

Example 2

admAddGroupsToGroup({"Group1","Group2","Group3"}, {"Child1","Child2"});

Result: "Child1", "Child2" will be added as child groups for "Group1","Group2","Group3".

Notes

In order to allow Jira to handle nested groups you would need first to enable or disable support for nested groups on each directory individually. Select  User Directories  from the JIRA administration menu,  edit  the directory and select  Enable Nested Groups . See  Configuring user directories .

See also

  • No labels