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

issueFunction in expression("", "watcher != reporter")

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Done
    • Priority: High
    • Resolution: Duplicate
    • Affects Version/s: 5.3.6
    • Fix Version/s: None
    • Component/s: JQL Functions
    • Labels:
      None
    • Critical Points:
      0

      Description

      Problem

      Trying to execute the expression JQL

      issueFunction in expression("", "watcher != reporter")

      we get an Error occurred communicating with the server. Please reload the page and try again. 

      and in application logs we see

      Caused by: java.text.ParseException: Unparseable number: "admin"
      at java.text.NumberFormat.parse(NumberFormat.java:385)
      at java_text_NumberFormat$parse.call(Unknown Source)
      at com.onresolve.jira.groovy.jql.expression.IndexRetrievingCollector$DoubleRetriever.get(IndexRetrievingCollector.groovy:233)
      at com.onresolve.jira.groovy.jql.expression.IndexRetrievingCollector$FieldRetriever$get.call(Unknown Source)
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
      at com.onresolve.jira.groovy.jql.expression.IndexRetrievingCollector$FieldRetriever$get.call(Unknown Source)
      at com.onresolve.jira.groovy.jql.expression.IndexRetrievingCollector$_collect_closure3.doCall(IndexRetrievingCollector.groovy:130)
      at sun.reflect.GeneratedMethodAccessor1077.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:497)
      at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
      at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1021)
      at groovy.lang.Closure.call(Closure.java:426)
      at org.codehaus.groovy.runtime.DefaultGroovyMethods.eachWithIndex(DefaultGroovyMethods.java:1946)
      at org.codehaus.groovy.runtime.DefaultGroovyMethods.eachWithIndex(DefaultGroovyMethods.java:1926)
      at org.codehaus.groovy.runtime.DefaultGroovyMethods.eachWithIndex(DefaultGroovyMethods.java:1976)
      at org.codehaus.groovy.runtime.dgm$174.invoke(Unknown Source)
      at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)
      at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
      at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
      at com.onresolve.jira.groovy.jql.expression.IndexRetrievingCollector.collect(IndexRetrievingCollector.groovy:129)
      at com.atlassian.jira.issue.statistics.util.FieldableDocumentHitCollector.collect(FieldableDocumentHitCollector.java:36)
      at org.apache.lucene.search.IndexSearcher.searchWithFilter(IndexSearcher.java:572)
      at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:532)
      at org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:320)
      at com.atlassian.jira.index.DelegateSearcher.search(DelegateSearcher.java:132)
      at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.search(LuceneSearchProvider.java:247)
      at sun.reflect.GeneratedMethodAccessor1168.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:497)
      at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:233)
      at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
      at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:58)
      at com.onresolve.jira.groovy.jql.AbstractScriptedJqlFunction.search(AbstractScriptedJqlFunction.groovy:164)
      at com.onresolve.jira.groovy.jql.AbstractScriptedJqlFunction$search$2.callCurrent(Unknown Source)
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
      at com.onresolve.jira.groovy.jql.AbstractScriptedJqlFunction$search$2.callCurrent(Unknown Source)
      at com.onresolve.jira.groovy.jql.AbstractScriptedJqlFunction.searchIssuesForDeterminedProjects(AbstractScriptedJqlFunction.groovy:89)
      at com.onresolve.jira.groovy.jql.AbstractScriptedJqlFunction$searchIssuesForDeterminedProjects$0.callCurrent(Unknown Source)
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
      at com.onresolve.jira.groovy.jql.AbstractScriptedJqlFunction$searchIssuesForDeterminedProjects$0.callCurrent(Unknown Source)
      at com.onresolve.jira.groovy.jql.NumericCompare.getQuery(NumericCompare.groovy:279)
      at com.onresolve.jira.groovy.jql.NumericCompare$getQuery$3.callCurrent(Unknown Source)
      at com.onresolve.jira.groovy.jql.NumericCompare.getQuery(NumericCompare.groovy:289)
      at com.onresolve.jira.groovy.jql.JqlQueryFunction$getQuery.call(Unknown Source)
      at com.onresolve.jira.groovy.jql.ScriptedJqlFunction.getQuery(ScriptedJqlFunction.groovy:117)
      at com.onresolve.jira.groovy.jql.ScriptedJqlFunction$getQuery.call(Unknown Source)
      at com.onresolve.jira.groovy.jql.ScriptedFunctionClauseFactory.getQuery(ScriptedFunctionClauseFactory.groovy:92)
      at com.atlassian.jira.jql.query.ContextAwareQueryVisitor.visit(ContextAwareQueryVisitor.java:97)
      at com.atlassian.jira.jql.query.ContextAwareQueryVisitor.visit(ContextAwareQueryVisitor.java:25)
      at com.atlassian.query.clause.TerminalClauseImpl.accept(TerminalClauseImpl.java:143)
      at com.atlassian.jira.jql.query.QueryVisitor.createQuery(QueryVisitor.java:51)
      at com.atlassian.jira.jql.query.DefaultLuceneQueryBuilder.createLuceneQuery(DefaultLuceneQueryBuilder.java:29)
      at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.createLuceneQuery(LuceneSearchProvider.java:263)
      at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.getHits(LuceneSearchProvider.java:206)
      at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchAndSort(LuceneSearchProvider.java:329)
      at com.atlassian.jira.issue.search.providers.LuceneSearchProvider.searchAndSort(LuceneSearchProvider.java:140)
      at sun.reflect.GeneratedMethodAccessor1100.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:497)
      at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)
      ... 276 more

      Steps to reproduce

      • Create an issue as user "admin"
      • Start watching this issue
      • Run the JQL above

       

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tbatagiannis Thanos Batagiannis
              Reporter:
              tbatagiannis Thanos Batagiannis
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: