I am trying to make the "account" Temp plugin field a required field when a transition is made. I used a field required validator to solve this problem. But the Account field drop-down menu also has "none" as one of the options. So, when a user selects "none" in the account field, the validator is failing. how do I solve this issue
Hi Jack
Thanks for the reply I don't want to pass "none" in this field. But the drop down has "none" so user can select none. I don't want the user to select "none" when they transition the issue
do you want "none" to be allowed during the transition? Field required views "none" as empty. If you want to allow "none" (seems odd to me if it is required) then you might try "field updated" validator? TBH, I don't know if it would pass on "none" being selected.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Eric, first some house keeping. use the "Reply" button to reply to someone in a thread and the "Answer" button to offer an answer to the original question that is different than other answers.
Now I suspect that you cannot remove the "none". However, as I think you stated if the user selects "none" they will not be allowed to transition, correct? If so then the user should quickly understand that they must choose an actual value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok Let me explain this with a scenario. "i am a user and i want to move an issue from To Do to In Progress. To make this transition i need to select the account in account field. I select "none" in the account field and click on In Progress button. Now my Issue is changed to In Progress. "
According to my requirement I don't want the issue to be moved to in progress when the account field has "none" selected. I want an error message to pop up that says "account field should can not be 'none' ". or "please select a valid account".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
got it. so in short - "none" is treated as an acceptable value. So let me rewind a bit to your question of how to remove "none". Is the location field a custom field you added or is it a field that is associated w/ an addon? I expect the later because you mention in the original post "...make the "account" Temp plugin field...". I don't know of a Temp addon. Regardless, if we are dealing w/ a custom select/multi-select field then we can of course change the available values. If this is a field that is part of an addon maybe not.
One final suggestion to try. Add a condition to the transition using "Value field" and check that it is not equal to "none". Note, I'm thinking that this condition function may not be on server.
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.