On this page
Use case
Evaluate users and hide transitions based on the outcome.
This use case is valid for both conditions and validators . The only difference is that you can specify an additional error message when using a validator.
Configuration
Jira expression*
["Charles Augustus", "John Watson"].includes(user.displayName)
Evaluate if the display name of the user is among a list of names.
Variations
You can easily modify this use case to include / exclude additional parameters.
Jira expression*
["62462d45f3824d006a58f82f", "6233ca6173c8ec00699e07c1"].includes(user.accountId)
Evaluate if the account ID of the current user is among a list of account IDs.
Jira expression*
user.getProjectRoles(issue.project).map(p=>p.name).includes("Administrators")
Evaluate if the current user is an administrator.
It can be modified to evaluate if the current users belongs to another project roles by changing the text between quotation marks.
Jira expression*
user.groups.includes("site-admins")
Evaluate if the current user is in the group site-admins.
Related use cases
Evaluate issue links and hide transitions based on the outcome. This use case is valid for both conditions and validators . The only difference is that you can specify an additional error message when using a validator. ADVANCED Make sure that an issue is not in an active sprint. This use case is valid for both conditions and validators. The only difference is that you can specify an additional error message when using a validator. BEGINNER Block transitions on weekends or any other day of the week. This use case is valid for both conditions and validators . The only difference is that you can specify an additional error message when using a validator. BEGINNER Evaluate a Date Picker field and block the transition if it has not been updated. This use case is valid for both conditions and validators . The only difference is that you can specify an additional error message when using a validator. BEGINNER Check whether an epic has all issues under it in a certain status. This is particularly important if you want to block an epic as long as work is still being done on related sub-tasks. This use case is valid for both conditions and validators. The only difference is that you can specify an additional error message when using a validator. INTERMEDIATE Check whether the current issue is in a particular status. This use case is valid for both conditions and validators. The only difference is that you can specify an additional error message when using a validator. BEGINNER Check whether the current issue has any unresolved sub-tasks. This is particularly important if you want to block a parent issue as long as work is still being done on related sub-tasks. This use case is valid for both conditions and validators. The only difference is that you can specify an additional error message when using a validator. INTERMEDIATE Make sure that the current user has uploaded a attachment during a definite period of time. This use case is valid for both conditions and validators. The only difference is that you can specify an additional error message when using a validator. BEGINNER Check whether the parent of the current issue is of a certain issue type. This is particularly important if you want to reuse a workflow for multiple sub-task issue types but only want a transition to be available if the sub-task belongs to a certain user story or a bug. This use case is valid for both conditions and validators. The only difference is that you can specify an additional error message when using a validator. INTERMEDIATE This use case is valid for both conditions and validators. The only difference is that you can specify an additional error message when using a validator. INTERMEDIATE Evaluate different values of the issue in the Parent Link field of the transitioned issue. This use case is valid for both conditions and validators . The only difference is that you can specify an additional error message when using a validator. INTERMEDIATE Evaluate if work has been logged in a sub-task to prevent transitioning the parent issue when no work has been logged. This use case is valid for both conditions and validators . The only difference is that you can specify an additional error message when using a validator. BEGINNER Evaluate the comments and hide transitions based on the outcome. This use case is only valid for validators as it involves making changes during a transition. An additional error message can be added. BEGINNER Evaluate if a user has logged more than a certain amount of time in the latest worklog. Use case JWT feature Workflow function Use case description Complexity Block a transition based on issue links Block a transition based on sprint information Block a transition based on the day of the week Block a transition if a predefined field value has not been changed Block a transition if some issues under an epic are not in a certain status Check current issue status Check for unresolved sub-tasks Check if an attachment was added recently Check parent issue type Check the number of times that a field has changed Check the number of times that a field has changed. Evaluate the Parent Link field Evaluate worklogs in sub-tasks Validate an issue only if a comment is written during the transition Validate worklogs
If you still have questions, feel free to refer to our support team.