Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
Level
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

why 2 select lists creating when using "convertToSingleSelect"

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.

 

 

4 comments

I am sorry, but we are stuck here.

  • Your question is unclear as to what you are trying to achieve when it just says "search box" - we do not know if this is a field on an issue you want to do a search from, or a third way to kick off searches in Jira or something else.
  • It is also unclear what you mean you are doing when you say "when search a text in the field and add the field value"
  • You have not given us any code
  • You have not told us what app you are using for doing this

Could you explain this more please?

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.

   

This is a Jira 8.5 datacenter version, we are using script runner Behaviors. 

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.

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. 

Hi Nic, Any suggestion?  

No, I don't know that it can be done.

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Jira Service Management

ThinkTilt is joining the Atlassian Family!

This morning, Atlassian announced the acquisition of ThinkTilt , the maker of ProForma, a no-code/low code form builder with 700+ customers worldwide. ThinkTilt helps IT empower any team in their or...

352 views 19 20
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you