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.*")



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





Add more steps according to your needs.



Related use cases




JWT feature

Workflow function

Logical validator

Parser functionsmatches() toString() textOnStringList() toStringList() userDisplayName()
Labelused to mark a use case as staff pick





Status
Tech review

Style guide