What is ID of select list "None" option?

I want to know ID of select list "None" option. Could you someone let me know what ID of

select list "None" option is.

3 answers

This widget could not be displayed.

I guess there is no id. It's just empty value option.

Thank you for your prompt comment.

 

This widget could not be displayed.

It depends what you mean by ID. I assume you're talking about HTML select e.g:

 

<select name="options">
  <option value="none">None</option>
  <option value="one">One</option>
  <option value="two">Two</option>
  <option value="three">Three</option>
</select>

 

Value of None option is "none" in this case but it can be anything and there is no ID. You can have

<option value="0" id="none">None</option>

in such case value of None is 0 and ID is "none". 

 

There is no generic answer for your question I'm afraid. You would need to check the output HTML to see the concrete values.

This widget could not be displayed.

Seems you are asking for a Multi/Single Selection of a customfield. For customfields you need the option value, not the id. Option value for "none" is -1.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

209 views 1 3
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you