Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


UI Text Box
sizemedium
typeinfo

This post function allows users to add/remove watchers to/from the current, parent, selected or any issue returned by a parser expression.

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


Configuration

UI Expand
titleTarget issue

Select the issue to add or remove watchers. If a list of issue keys is passed, the function will be performed for every issue in the list.
The following options are available:

  • Current issue
  • Parent of current issue
  • Selected issue
  • Parser expression
UI Text Box
typeinfo

When the option parser expression is selected, an expression parser input field is displayed and the input has to be an issue key or an issue list. The watchers will be added or removed to the issues specified by the given issue keys.


UI Expand
titleMode

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

OptionDescription
Add users from a field

You will be presented with a dynamic selection, containing available fields (or field codes) where the user(s) should be retrieved from. 

UI Text Box
typeinfo

If you select a text field, the output must contain a single or comma separated list of Atlassian account Ids.

Add members of a project role

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 as watchers.

Add members of a group

You will be presented with a dynamic selection, containing available groups.

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

Remove users from a field

You will be presented with a dynamic selection, containing available fields (or field codes) where the user(s) should be retrieved from. 

UI Text Box
typeinfo

If you select a text field, the output must contain a single or comma separated seperated list of Atlassian account Idslds.

Remove members of a project role

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 removed as watchers.

Remove members of a group

You will be presented with a dynamic selection, containing available groups.

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

Remove all watchersCheck this option to remove all watchers from the current issue.
UI Text Box
typeinfo

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



UI Expand
titleRun as

Include Page
DECADIS:_snip_runAs_Cloud
DECADIS:_snip_runAs_Cloud

UI Text Box
typenote

The configured user must have all necessary permissions to add or remove watchers in the target issue.




UI Expand
titleConditional execution

Include Page
DECADIS:_snip_condExecution_Cloud
DECADIS:_snip_condExecution_Cloud



Use cases and examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Use case description, Complexity
sortByTitle
cqllabel = "use-case" and space = currentSpace() and parent = "153321489"


Excerpt Include
DECADIS:Contact support
DECADIS:Contact support
nopaneltrue