Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-33567

Create an elegant template for a Multi Select Custom Field just as the 'Components' system field

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Duplicate
    • None
    • None
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

      NOTE: This suggestion is for JIRA Server. Using JIRA Cloud? See the corresponding suggestion.

      Actually it is possible to create an elegant Multi Select Custom Field (just as the 'Components' and 'Versions' system fields), but it requires some JavaScript knowledge by adding the following content into the Custom Field's description:

      <script type="text/javascript">
      AJS.$("#customfield_10102 option[value='-1']").remove();
      
      (function($)
      {
      new AJS.MultiSelect(
      {
      element: $("#customfield_10102"), itemAttrDisplayed: "label", errorMessage: AJS.params.multiselectComponentsError
      });
      }
      )(AJS.$);
      </script>
      

      It will result in a custom field like this:

      This is not user friendly. It would be nice to have a dynamic template for choosing the classical select list or an elegant display like this. As a workaround, we do have excellent examples provided by our community here:

      But it should be default on JIRA.

              Unassigned Unassigned
              ltflorao LucasA
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: