Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

How do we make "None" go away? There are 3 options I know of.

Add a fake whitespace option, and mark it the default

When a select list is marked required, and has a default value, then 'None' disappears (https://jira.atlassian.com/browse/JRASERVER-3666). So the idea here is to add a select-list option with value " ", and mark it the default.

This works, but breaks JIRA's enforcement of the field's required'ness. Users can create issues with the default value " " selected.

This problem can be avoided using ScriptRunner Behaviours, setting an error on the field if its value is " ". This works, but Behaviours is bypassed by the REST API and Automation for JIRA.

Hack JIRA's select list template to replace 'None' with ''

...

Don't be tempted to use a JIRA translation plugin to map common.words.none to  to '', as that will break many other uses where 'None' is the correct meaning.

Add a fake whitespace option, and mark it the default

This achieves our blank line, but in a different way:

Image Added

When a select list is marked required, and has a default value, then 'None' disappears (https://jira.atlassian.com/browse/JRASERVER-3666). So the idea here is to add a select-list option with value " ", and mark it the default.

This works, but breaks JIRA's enforcement of the field's required'ness. Users can create issues with the default value " " selected.

This problem can be avoided using ScriptRunner Behaviours, setting an error on the field if its value is " ". This works, but Behaviours is bypassed by the REST API and Automation for JIRA.

Use radio buttons instead of a select list

...