Hi Support,
Please let us know how to limit to select only one component.
Currently system allows to select multiple list of components. How to avoid that and restrict to one.
Venu
You will need a javascript which will check for the number of components selected and restrict the user for entering more than on component. (paste this script in the field description)
This Jtricks tutorial shows how to make the Fix versions field as single picker .You can refer this and get an idea .
try pasting the below script in the components field description
<script > var formId = AJS.$("#components").closest('form').attr('id'); AJS.$('#'+formId).submit(function() { var count = AJS.$("#components :selected").length; if (count > 1){ alert('You can select only one Component for an issue'); return false; } else { return true; } }); </script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mizan,
I tried by adding above script under components description. But didn't work. Not sure what is stopping here. Please advise.
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.