YouTrack Standalone 7.0 Help

Assignee Visibility Group

This workflow generates a warning when an issue is assigned to a user who is not a member of the group for which an issue is visible.

File Namejetbrains-youtrack-assigneeVisibilityGroup
Auto-attachedyes
RulesWarn if assignee isn't included into the visibility group (stateless)

Use Case

This workflow warns users when they assign an issue to an assignee who is not a member of the group for which an issue is visible. A warning is shown if the visibility of an issue is set to a specific group and the assignee is not a member of the visibility group.

The workflow does not block the user from assigning the issue, but can be used to prompt the user to change the visibility setting for the issue.

Rules

When an issue is assigned to a user, this rule verifies that the user is a member of the visibility group. If not, a warning is displayed.

Warn if assignee isn't included into the visibility group

rule Warn if assignee isn't included into the visibility group when Assignee.changed && Assignee != null { if (permittedGroup != null && !Assignee.isInGroup(permittedGroup.name)) { message( l10n ( Please take into account that new assignee ' {Assignee.fullName} ' isn't included into the visibility group ' {permittedGroup.name} '!)); } }
Last modified: 29 September 2016