On this page



Use case

Add only the users of a group that are active to an issue as watchers. In this use case, the group will be jira-administrators.



Configuration


Add the Update or copy field values post function to the desired transition or create a new transition.


Target issue

Choose Current issue


Fields


Field

Choose the New watchers field.


Value

Choose Set field value manually


Expression

Use the following expression with the expression editor in Advanced text mode.

toString(filterByPredicate(usersInGroup("jira-administrators"), isActive(^%)))

This expression will return all of the active users in the jira-administrators group.






Related use cases




JWT feature

Workflow function

Update or copy field values

Parser functionsusersInGroup() isActive() toString() filterByPredicate()
Labelused to mark a use case as staff pick





Status
Tech review

Style guide