Time Since Chart gadget fails on all custom Date Picker fields — DateHistogramLuceneAggregator throws IllegalStateException due to missing DocValues

XMLWordPrintable

    • 11.03
    • 1
    • Severity 3 - Minor

      Issue Summary
      The Time Since Chart gadget fails to load when configured with any custom Date Picker field on Jira DC 11.3.5. The DateHistogramLuceneAggregator throws IllegalStateException: unexpected docvalues type NONE because the Date Picker custom field indexer is not emitting DocValues required by the aggregation API. 

      Steps to Reproduce

      1. On Jira DC 11.3.5, create a custom field of type "Date Picker"
      2. Create issues with date values in the field
      3. Run a full re-index
      4. Create a filter selecting issues with dates in that field
      5. Add a Time Since Chart gadget to a dashboard configured with: the filter, the custom Date Picker field, Period: Monthly, Days Previous: 365, Cumulative Totals: Yes, Show Unresolved Trend: Never
      6. Save and load the gadget
      7. Gadget fails to load ( see the Screenshot attached ) 

      Expected Results

      The Time Since Chart gadget renders correctly, displaying a monthly histogram — consistently

      Actual Results

      Gadget fails to load. Error in atlassian-jira.log:

      2026-06-02 10:38:43,113+0000 http-nio-8080-exec-13 url: /jira/rest/gadget/1.0/timeSince/generate; user: admin ERROR admin 638x794x1 1kl6a1k 10.140.13.100,172.50.0.2 /rest/gadget/1.0/timeSince/generate [c.a.p.r.v2.exception.ThrowableExceptionMapper] Uncaught exception 9707dd9d-091d-489d-874b-8618cad21a93 thrown by REST service: unexpected docvalues type NONE for field 'customfield_10300' (expected one of [SORTED_NUMERIC, NUMERIC]). Re-index with correct docvalues type.
      java.lang.IllegalStateException: unexpected docvalues type NONE for field 'customfield_10300' (expected one of [SORTED_NUMERIC, NUMERIC]). Re-index with correct docvalues type.
          at org.apache.lucene.index.DocValues.checkField(DocValues.java:340)
          at org.apache.lucene.index.DocValues.getSortedNumeric(DocValues.java:412)
          at com.atlassian.jira.search.lucene.aggregation.bucket.datehistogram.DateHistogramLuceneAggregator.loadDocValues(DateHistogramLuceneAggregator.java:45)
          at com.atlassian.jira.search.lucene.aggregation.bucket.AbstractLuceneBucketAggregator.loadDocValues(AbstractLuceneBucketAggregator.java:46)
          at com.atlassian.jira.search.lucene.aggregation.MultiAggregator.loadDocValues(MultiAggregator.java:38)
          at com.atlassian.jira.search.lucene.aggregation.LuceneAggregationCollector.doSetNextReader(LuceneAggregationCollector.java:25)
          at org.apache.lucene.search.SimpleCollector.getLeafCollector(SimpleCollector.java:33)

       

      Workaround

      Currently, there is no known workaround for this behaviour. A workaround will be added here when available.

        1. Test on 10.3.21 verison.png
          293 kB
          Vishal Sharma
        2. TEST on 11.3.5 version.png
          319 kB
          Vishal Sharma

              Assignee:
              Unassigned
              Reporter:
              Vishal Sharma
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: