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

Autocomplete does not work when custom field context is restricted to issue types or projects

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Low
    • None
    • 6.0.8, 6.1, 6.1.7, 6.3.1, 6.3.6, 6.3.8, 6.4.4, 6.4.5, 6.4.8, 7.5.2, 7.6.1, 8.20.11
    • JQL

    Description

      Scenario 1 for JIRA 6.x

      Summary

      JIRA Advanced Search does not display the custom field options if the custom field context is configured for specific issue types (and not as Global (all issues)) or projects.

      Steps to Reproduce

      1. Add a custom field (e.g. Multi-select or Select List) and associate it to the bug issue type. For example:
      2. Re-index the instance.
      3. In Advanced search: try to type the following JQL query
        issuetype = bug AND Teams = 
        

      Expected Results

      Get the list of available values for the Teams field.

      Actual Results

      The values are not displayed, even if all issue types are selected (using multiple selection) in the Custom Field Context.

      Notes

      • This problem does not happen on Basic Search
      • If multiple contexts were configured and there are contexts not associated with any specific issue types (i.e. Global (all issues)), then the Advanced Search will display the options from those contexts.
      Scenario 2 for JIRA 7.x

      Summary

      Problems:

      1. JIRA issue navigator basic search does not autocomplete correct custom fields value for all projects.
      2. Problem #1 can be negated by using explicit JQL from advance search. But, an invalid warning message seen after toggling to basic search when a specific custom field value which is outside of global context is selected.

      Steps to Reproduce

      For problem #1:

      1. Create custom field and specific a context for certain projects.
      2. Go to issue navigator's basic search, and add the custom field to the search options.
      3. Use the following search criteria
        Project = All
        CF Test = test4
        

      For problem #2:

      1. Select advanced searching and use the JQL:
        CF Test = test4
        
      1. Toggle to basic search.

      Expected Results

      For problem #1:
      The value "test4" is a valid search option and should be displayed by autocomplete because the criteria of "Projects = all" would include projects with the context created.

      For problem #2:
      No warning message

      Actual Results

      For problem #1:
      The value "test4" does not appear.

      For problem #2:
      Error message is seen.

      Attachments

        1. CF_All_List.PNG
          CF_All_List.PNG
          28 kB
        2. CF_Setup.PNG
          CF_Setup.PNG
          25 kB
        3. field_context.JPG
          field_context.JPG
          48 kB
        4. field_options.JPG
          field_options.JPG
          36 kB
        5. JQL_Search_Basic.PNG
          JQL_Search_Basic.PNG
          15 kB
        6. JQL_Search.PNG
          JQL_Search.PNG
          14 kB
        7. no_action.JPG
          no_action.JPG
          38 kB
        8. test4_not_found.PNG
          test4_not_found.PNG
          21 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ckimloong John Chin
              Votes:
              17 Vote for this issue
              Watchers:
              18 Start watching this issue

              Dates

                Created:
                Updated: