Uploaded image for project: 'Xporter for Jira'
  1. Xporter for Jira
  2. XPORTER-2605

JQLCount is not working on scheduled reports

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Done
    • Release 6.0.7
    • Release 6.1.0
    • Scheduled Reports
    • None
    • UNCOVERED

    Description

      Steps to reproduce:

      1. Create a project called DEMO and create some issues
      2. Install the attached template
      3. Create a scheduled report using a JQL: project = DEMO
      4. After running the following log error is written.
      java.lang.IllegalStateException: Incorrect usage of JIRA/lucene search API. You can only create/use: ManagedIndexSearcher inside a context (request or Jira-Thread-Local). Check: JiraThreadLocalUtils for details.
      	at com.atlassian.jira.index.ManagedIndexSearcherFactory.createFrom(ManagedIndexSearcherFactory.java:15)
      	at com.atlassian.jira.issue.index.ThreadLocalSearcherCache$Cache.retrieveEntitySearcher(ThreadLocalSearcherCache.java:116)
      	at com.atlassian.jira.issue.index.ThreadLocalSearcherCache.getSearcher(ThreadLocalSearcherCache.java:39)
      	at com.atlassian.jira.issue.index.DefaultIndexManager.getEntitySearcher(DefaultIndexManager.java:888)
      	at com.atlassian.jira.issue.index.DefaultIndexManager.getIssueSearcher(DefaultIndexManager.java:865)
      	... 2 filtered
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:38)
      	at com.sun.proxy.$Proxy167.getIssueSearcher(Unknown Source)
      	at com.atlassian.jira.issue.search.SearchProviderFactoryImpl.getSearcher(SearchProviderFactoryImpl.java:17)
      	at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.getIssueSearcher(LuceneSearchProvider.java:130)
      	at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.getHitCount(LuceneSearchProvider.java:145)
      	at com.atlassian.jira.bc.issue.search.DefaultSearchService.searchCount(DefaultSearchService.java:130)
      	at com.xpandit.jiraxporter.export.api.integration.XporterJQLResolver.count(XporterJQLResolver.java:139)
      	at com.xpandit.jiraxporter.commons.document.builder.api.mapping.processor.JQLCountMappingProcessor.resolve(JQLCountMappingProcessor.java:53)
      	at com.xpandit.jiraxporter.commons.document.builder.impl.aspose.excel.sheet.replacer.processor.GenericFieldProcessor.getValue(GenericFieldProcessor.java:173)
      	at com.xpandit.jiraxporter.commons.document.builder.impl.aspose.excel.sheet.replacer.processor.GenericFieldProcessor.resolve(GenericFieldProcessor.java:163)
      	at com.xpandit.jiraxporter.commons.document.builder.impl.aspose.excel.sheet.replacer.processor.SingleFieldProcessor.execute(SingleFieldProcessor.java:62)
      	at com.xpandit.jiraxporter.commons.document.builder.impl.aspose.excel.sheet.replacer.callback.ASCellProcessor.process(ASCellProcessor.java:241)
      	at com.xpandit.jiraxporter.commons.document.builder.impl.aspose.excel.sheet.replacer.StaticZoneProcessor.apllyValues(StaticZoneProcessor.java:262)
      	at com.xpandit.jiraxporter.commons.document.builder.impl.aspose.excel.sheet.replacer.StaticZoneProcessor.process(StaticZoneProcessor.java:140)
      	at com.xpandit.jiraxporter.commons.document.builder.impl.aspose.excel.sheet.AsposeWorksheetConverter.process(AsposeWorksheetConverter.java:294)
      	at com.xpandit.jiraxporter.commons.document.builder.impl.aspose.excel.AsposeExcelConverter.convert(AsposeExcelConverter.java:242)
      	at com.xpandit.jiraxporter.workflow.post.action.XporterPostFunctionDocument.createScheduledReportDocument(XporterPostFunctionDocument.java:199)
      	at com.xpandit.jiraxporter.component.scheduler.ScheduleReporting.lambda$runJob$1(ScheduleReporting.java:363)
      	at com.xpandit.jiraxporter.component.bulkexport.BulkExportProcess.finishProcess(BulkExportProcess.java:281)
      	at com.xpandit.jiraxporter.component.bulkexport.BulkExportProcess.run(BulkExportProcess.java:268)
      	at java.lang.Thread.run(Thread.java:748)
      
      
      

      Attachments

        Activity

          People

            afro Andre Fernandes Rodrigues
            rmbr Rui Rodrigues
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: