On this page

Use case

Prevent external users from creating issues by enabling the transition only if the word EXTERNAL is not in the display name of the current user with a Logical validator.


Configuration

Add the Logical validator validator to the Create workflow transition.

Expression

Write the following expression in the validator.

!matches(userDisplayName(%{issue.reporter}), ".*\\bEXTERNAL.*")
Variation

If it is needed that a User Picker (multiple users) field is evaluated, add this expression instead after replacing the field code %{issue.cfaaaaa} with the appropriate one.

!matches(toString(textOnStringList(toStringList(%{issue.cfaaaaa}), userDisplayName(%{seed.text}))), ".*\\bEXTERNAL.*")

Error message

Add an error message like the following one.

External users can not create tickets



Related use cases


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