Team
Definition of an organization Team, the following properties are supported:
| Key | Value | Description | Note |
|---|---|---|---|
| name | string | The name of the team | |
| description | string | The description of the team | |
| privacy | string | The level of privacy this team should have | visible or secret |
| notifications | boolean | Whether the team members receive notifications when the team is @mentioned | |
| members | list[string] | List of users that should be a member of the team | |
| skip_members | boolean | If true, team members will be ignored |
|
| skip_non_organization_members | boolean | If true, users which are not yet organization members can not be added to the team |
Jsonnet Function¶
Validation rules¶
- setting
privacymust be one ofvisibleorsecret, any other value triggers an error - specifying a non-empty list of
memberswhileskip_membersis enabled, triggers an error - specifying a user in
membersthat is not yet an organization member whileskip_non_organization_membersis enabled, triggers an error