I am trying to make search box using below code for a single select field, but when search a text in the field and add the field value then a 2nd select list is creating dynamically.
No, I don't know that it can be done.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nic, Thank you so much for the response. Can you please suggest or give me a canned script in script runner to make "singleselect" field to be searchable? This will be very useful to our customer.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's because the function is trying to convert from a select list to a select list. It's unable to get rid of the original select list because it's the wrong type.
This function is for converting text fields to select lists, not adding a search to existing ones.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is a Jira 8.5 datacenter version, we are using script runner Behaviors.
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.
Hi @Nic Brough _Adaptavist_: Actually below is the scenario.
We have a singleselect field, customer wanted to make it searchable based on the text entered.
1. We have used below code in "Behaviors" Initializer to make the single select field searchable
"getFieldById("customfield_XXXX").convertToSingleSelect()"
2. Now we are able to search a value in the field.
Problem: when search a field value and hit enter then other dropdown field is creating dynamically on the create screen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am sorry, but we are stuck here.
Could you explain this more please?
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.