Hello Team,
Is there a way to set a validator such that users can only create tickets is a particular field (Single Select field type)value equals Yes?
If they select No then Jira should show a error msg, the "XYZ" value needs to be Yes to create a Jira ticket.
Yes, you could stick a validator on the create transition, but there is no point.
Think through what the thought process is. If someone is going to create an issue, they probably have a good reason for doing so. What is the point of asking them a question to which the answer blocks them from creating it?
Fields are there to capture useful information. If you implement this, every single issue that gets created will be created with a value of "yes", so you have to question the value in this, as it's not giving you any useful information, just annoying your user (if they answer no, they'll go back to the create screen and be forced to change it)
Now, there are actually uses for having fields set automatically as an issue is created - specifically when you need to see them straight away but your process allows and encourages them to be changed later in the life-cycle.
When you do have a use for a field like this, then don't validate and annoy your user, just set it to "yes" for them. Use a post-function, script or automation to do it.
Thanks, Nic! Agreed and I exactly said the same thing, but at times its very hard to say NO on what the management is asking for provided they are top-management.
I am unable to find a validator on the create transition itself that checks the condition(Yes in my case), could you pls help?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'd still go with "set it for them" in this case.
But, yes, you'll need an app to provide a validator that can check what has been entered and tell them off for forgetting to set a field.
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.