Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Only allow tickets to be created if the value is Yes

Teza April 5, 2021

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.

1 answer

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 5, 2021

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.

Teza April 8, 2021

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?

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 8, 2021

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.

Suggest an answer

Log in or Sign up to answer