Hi all,
does Jira allow an out of the box solution for this?
Hi @Anette Noll --
Unfortunately the only validators offered by out of the box do not let you check user roles for making a field required (or not).
To validate based on user role, you'll need a third-party add-on such as:
You may end up needing to learn a little bit about Jira Expressions - if you have problems, you can always ask here in the community, or from the vendor.
Hi @Darryl Lee
JMWE is such an integral part of Jira that I have forgotten to see it as a third-party-add-on, i.e. this is available.
Can you help with the expression in this case?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Anette Noll ,
using JMWE for Jira Cloud, you can use a Field Required Validator (JMWE app), select the field that must be required, and add a "conditional validation" Jira expression like:
issue.reporter.getProjectRoles(issue.project).some(pr => pr.name == "Developers")
If you are using this on the create transition, you can use this as well:
user.getProjectRoles(issue.project).some(pr => pr.name == "Developers")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Anette Noll
Is the field required for all users if you remove conditional validation?
And when you say it doesn't work, what does that mean exactly?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Anette Noll ,
when exactly do you need this? What is your use case?
These kind of conditions are problematic in cloud.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
we collaborate via Jira with customers and suppliers, but want to avoid that customer directly contacts supplier nor should supplier be able to contact customer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.