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

Compare with Current View Page History

« Previous Version 28 Next »

This post function allows users to be added or removed from the current issue's watchers list.

You can retrieve the users from either an existing fieldproject role, or group.

Configuration

Mode

The mode parameter defines how you want to retrieve the users to be added or removed as watchers. The following modes are available:

Add / remove users based on a field

If you select any of these modes, you will be presented with a dynamic selection, containing available fields (or field codes) where the user(s) should be retrieved from. 

If you select a text field, the output must contain a single user name or a comma separated list of user names, group names or project role names


Add / remove users from a project role

If you select any of these modes, you will be presented with a dynamic selection, containing available project roles.

All users from the selected project role (in the current project) will be added or removed as watchers.


Add / remove users from a group

If you select any of these modes, you will be presented with a dynamic selection, containing available groups.

All users from the selected group will be added or removed as watchers.


Remove all watchers

If you select this mode, all watchers will be removed from the current issue.


If you need to add or remove watchers from multiple groups or project roles, you need to configure additional post functions.

Conditional execution

You can optionally specify a logical expression to define the circumstances (or conditions) under which the post function should be executed.

The result of the logical expression must return a boolean value of either:

  • true → the post function will be executed
  • false → the post function will not be executed

Using the conditional operator, even complex or multi-layered conditions can be constructed.

Make sure to learn more about defining logical expressions and browse through the various examples here: Logical mode

If used in the Create Issue transition, make sure that the post function is triggered after the "Creates the issue initially" post function.


Use cases and examples


If you still have questions, feel free to refer to our support team.