Uploaded image for project: 'Jira Platform Cloud'
  1. Jira Platform Cloud
  2. JRACLOUD-33567

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

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Duplicate
    • None
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      NOTE: This suggestion is for JIRA Cloud. Using JIRA Server? 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: