Workflow Validators
(AUM) User with specified value for property
This workflow validator blocks a transition unless a user's Advanced User Manager property satisfies the comparison you configure. You choose whose property is checked (a user field on the issue, or the person performing the transition), which property to read, a comparison and a value. If the comparison is not satisfied, Jira refuses the transition and shows the error message described below.
The validator is configured in Jira's own workflow editor, not inside the Advanced User Manager console. The app's Configure → Automation screen only describes the workflow extensions and links out to Jira's workflow settings.
Before you start
You need Jira administrator permission to edit workflows, and at least one property definition must already exist in the app under Configure → User properties. The property dropdown in the validator lists exactly those definitions. Users also need a value stored for that property – set values from Manage → Jira users using the Set properties drawer.
Add the validator to a transition
In Jira, open the workflow that contains the transition and edit it.
Select the transition, then open its Validators list and add a validator.
Choose (AUM) User with specified value for property from the list of validators.
Configure the four fields described below, then add the validator and publish the workflow. Nothing takes effect until the workflow is published.
Configure the validator
The configuration screen has four fields:
Whose property should be checked? – pick Current User to check the person performing the transition, or pick any user picker field on the issue (for example Assignee or Reporter) to check the user held in that field.
Which property value should be checked? – pick one of your Advanced User Manager property definitions.
Comparison – equals, not equals, includes or excludes.
Value – the text to compare against, for example Engineering.
As soon as all four fields are filled in, the Condition preview box at the bottom of the screen restates the rule in plain language, for example: Allow transition when Current User's Department property equals engineering. Use it to confirm you configured what you intended before you save.
Comparison | Transition is allowed when |
|---|---|
equals | The stored property value is exactly the value you entered. |
not equals | The stored property value is anything other than the value you entered. |
includes | The stored property value contains the value you entered as a substring. |
excludes | The stored property value does not contain the value you entered. |
This screenshot shows an earlier version of the interface. The steps in the text above are current.
This screenshot shows an earlier version of the interface. The steps in the text above are current.
This screenshot shows an earlier version of the interface. The steps in the text above are current.
What the user sees when the transition is blocked
When the comparison is not satisfied, Jira stops the transition and shows the validator's error message, which is built from your configuration:
Condition not satisfied: Allow transition when Current User's Department property equals engineering
The message is generated from the fields you filled in – it is the same sentence shown in the Condition preview box – so choose property names and values that read clearly to your users.
Things to know
Values are matched in lower case. The stored property value is lower-cased before it is compared, so enter the Value in lower case (engineering, not Engineering) or the comparison will never match.
Users with no stored value. With equals and includes, a user who has no value stored for the property fails the check and the transition is blocked. With not equals and excludes, that same user passes and the transition is allowed.
Renaming a property is safe. Values follow the property definition, not its name. Deleting a property definition, however, removes it from the dropdown – a validator that still refers to a deleted property should be reconfigured.
Validator vs. condition. A condition hides the transition button when the rule is not met; a validator leaves the button visible and blocks the transition with an error message when it is used. Use the validator when you want the user to understand why they cannot proceed.
The rule is only active once the workflow is published.
Related pages
Validator Example – a worked, end-to-end example.
Workflow Conditions – the same comparison, applied as a condition.
Workflow Post Functions – copy a user property into a custom field during a transition.
Managing User Properties – create, rename and delete the property definitions this validator reads.