Hi,
I added to the 'Priority' field new priority named "None", I would like to make the 'Priority' field mandatory, such that the user will have to pick some option of the priorities and not leave the "None" priority as it.
How can I do it ?
Thank you.
Welcome to the Community @Daniel Juravski!
You can define the field behavior with field configuration schemes.
Hi @[deleted] and thank you !
I know how to define a mandatory behavior to a field, however my problem is that even when the 'Priority' field is required - it has already a default value, what makes it not really mandatory.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is currently not possible to default the Priority Field Value to NULL (non-selected).
Your request makes sense and others have requested this before. Feel free to comment and vote for this suggestion: Allow 'No default' for Priority (JRASERVER-13048).
A 'dirty' solution would be to create a new priority (called 'Please select' or 'Unselected') and set it as the default. You can then add a validation in the Create transition to verify that the field value was changed (this may require an add-on).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Daniel Juravski Did you ever get this resolved. I have the same issue. What about seeing if the field changed from a default value like "None"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Robb F Watkins,
I did resolve it. I added the 'none' value (in your case - 'ENTRY PRIORITY'), set the priority field as a required with the 'none' as default.
Then, on each issue type that I wanted to force the priority choice, I edited its workflow such as the create transition will has a validator that checks if the priority value is not None (I used the ScriptRunner add-on with the next command: issue.priority?.name != 'None')
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Daniel Juravski Wow. That is so simple I am almost embarrassed for asking. It worked like a champ. Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Daniel Juravskiyou saint! I got just as far as you and @Robb F Watkins without even thinking of scripting the validator to make it required to have another option other than the "None" priority I created. Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello, I'm currently trying to accomplish this but using the script above does nothing when added as a validator.
Is there more to the script that I'm missing?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi!
I'm sorry, but why adding a "None" option in the first place?
Regarding your question, you can only make a field mandatory, not the value in it.
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.
Make this priority field as a Required using field configuration scheme.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Yogesh Mude,
Even when the field is required, its automatically gets the default value of 'Priority', thus the user doesn't really need to insert its value to it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That still leaves us an option to choose "None"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The 'None' option was to force the user to insert its real value for 'Priority'.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, as @Grigory Salnikov said why you have been added None value/option to Priority field.
If you want to make this field Mandatory then you should not add the None value/option to this field because the None value/option will be set as Default one.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If Ill remove the None value at all, so I'll be need to pick other default value for the priority, what still doesn't solve my issue, because the 'Priority' still will have other default value inserted and the user not actually will need to insert its own value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, if you want to select the priority field value by the User then why you are setting a default value, just make this field required that's it.
While creating ticket the user must need to provide the value of it otherwise the user will not be able to proceed further.
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.