Uploaded image for project: 'SR for Jira - Development'
  1. SR for Jira - Development
  2. SRJIRA-5289

Exact Text Searcher (Stattable) fields are not displaying data in Jira's dashboard gadgets

    Details

    • Type: Bug
    • Status: Triage
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: 6.21.0
    • Fix Version/s: None
    • Component/s: Scripted Fields
    • Labels:
      None
    • Critical Points:
      0

      Description

      Summary

      Users are able to successfully display "Text Field (multi-line)" Script Field data in dashboard gadgets (e.g. pie chart or two-dimensional filter) when they configure it to be “Free Text Searcher (Stattable)" by navigating to the Issues > Custom Fields > Edit screen.

      However, as implied by the image in our Script Fields documentation, users are not able to display data in their dashboard gadgets when they configure their Script Fields to be “Exact Text Searcher (Stattable)"

      In the example below, we demonstrate how to reproduce this problem using a Scripted Field which returns issue.getIssueType().name and displays the information in a pie chart dashboard gadget.

      Steps to Reproduce

      Using: ScriptRunner 6.21.0 | Jira 8.15.0

      1. Create a simple JQL filter. E.g. "project = ABC"
      2. Create a ScriptRunner "Custom Script Field"
      3. Configure the SF to return a "Text Field (multi-line)", using issue.getIssueType().name as the return value.
      4. Configure contexts and screens.
      5. Navigate to Issues > Custom Fields > Your Custom Field > Edit. Select "Exact Test Searcher (Stattable) as the Search Template.
      6. Perform a background re-index.
      7. Create a pie chart dashboard gadget.
      8. Set the filter as described above and set the "Statistic Type" to be the Script Field that you created earlier.

      Expected Behaviour

      The pie chard displays all issue types for the given project in a pie chart.

      Actual Behaviour

      The pie chart displays no data:

      Workaround

      Use "Free Text Searcher (Stattable)" instead.
      Ensure you perform a background re-index after making the change to the Custom Field.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            jbaldwin Joe Baldwin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: