groovy.lang.MissingPropertyException: No such property: versions for class: com.atlassian.jira.issue.DocumentIssueImpl

JIRA | Prasanth | 3 years ago
  1. 0

    {panel:title=*This issue has moved*} {color:red}This issue has been moved permanently to [Adaptavist's Product Support JIRA instance|https://productsupport.adaptavist.com/browse/GRV-385].{color} All existing users of this instance should have the same username on our Product Support instance. However, you will very likely need to click on the [Can't access your account|https://productsupport.adaptavist.com/secure/ForgotLoginDetails.jspa] link in order to reset to a new password. {panel}I am trying to use affectedVersion in issueFieldExactMatch and issueFieldMatch. Seemingly it's not working wherein other fields like fixVersion works perfectly. I tried with a query issueFieldExactMatch("project=TST and issueType=Bug", "affectedVersion", "[REL]") but it didn't return any results though there are matching issues. Possibly, I am missing something!! I tried with fieldid 'versions' . But it throws an error "Error occurred communicating with the server. Please reload the page and try again" and in the log I get {noformat} 2013-12-04 06:38:27,361 http-bio-8080-exec-1252 ERROR xxxxx 398x680723x5 xwpy9v 10.33.249.38 /rest/issueNav/1/issueTable [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service groovy.lang.MissingPropertyException: No such property: versions for class: com.atlassian.jira.issue.DocumentIssueImpl at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:273) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at com.onresolve.jira.groovy.jql.EntityMatch$_getQuery_closure1.doCall(script13860744228301257966674.groovy:118) at sun.reflect.GeneratedMethodAccessor3843.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884) {noformat}

    JIRA | 3 years ago | Prasanth
    groovy.lang.MissingPropertyException: No such property: versions for class: com.atlassian.jira.issue.DocumentIssueImpl
  2. 0

    {panel:title=*This issue has moved*} {color:red}This issue has been moved permanently to [Adaptavist's Product Support JIRA instance|https://productsupport.adaptavist.com/browse/GRV-385].{color} All existing users of this instance should have the same username on our Product Support instance. However, you will very likely need to click on the [Can't access your account|https://productsupport.adaptavist.com/secure/ForgotLoginDetails.jspa] link in order to reset to a new password. {panel}I am trying to use affectedVersion in issueFieldExactMatch and issueFieldMatch. Seemingly it's not working wherein other fields like fixVersion works perfectly. I tried with a query issueFieldExactMatch("project=TST and issueType=Bug", "affectedVersion", "[REL]") but it didn't return any results though there are matching issues. Possibly, I am missing something!! I tried with fieldid 'versions' . But it throws an error "Error occurred communicating with the server. Please reload the page and try again" and in the log I get {noformat} 2013-12-04 06:38:27,361 http-bio-8080-exec-1252 ERROR xxxxx 398x680723x5 xwpy9v 10.33.249.38 /rest/issueNav/1/issueTable [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service groovy.lang.MissingPropertyException: No such property: versions for class: com.atlassian.jira.issue.DocumentIssueImpl at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:273) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at com.onresolve.jira.groovy.jql.EntityMatch$_getQuery_closure1.doCall(script13860744228301257966674.groovy:118) at sun.reflect.GeneratedMethodAccessor3843.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884) {noformat}

    JIRA | 3 years ago | Prasanth
    groovy.lang.MissingPropertyException: No such property: versions for class: com.atlassian.jira.issue.DocumentIssueImpl
  3. 0

    Scripted JQL Functions With Comments - Script Runner - Confluence

    atlassian.net | 6 months ago
    groovy.lang.MissingPropertyException: No such property: versions for class: com.atlassian.jira.issue.DocumentIssueImpl
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    No such property: org.codehaus.grails.INCLUDED_JS_LIBRARIES

    Stack Overflow | 3 years ago | Sérgio Michels
    groovy.lang.MissingPropertyException: No such property: org.codehaus.grails.INCLUDED_JS_LIBRARIES for class: org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestWrapper
  6. 0

    [groovy-user] Problem with the subscript operators

    Google Groups | 5 years ago | Ondřej Čada
    groovy.lang.MissingPropertyException: No such property: a for class: Foo

  1. musketyr 1 times, last 2 months ago
  2. Luka 2 times, last 2 months ago
  3. mortalman7 1 times, last 5 months ago
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. groovy.lang.MissingPropertyException

    No such property: versions for class: com.atlassian.jira.issue.DocumentIssueImpl

    at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap()
  2. Groovy
    AbstractCallSite.call
    1. org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:50)
    2. org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:273)
    3. org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:53)
    4. org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
    4 frames
  3. com.onresolve.jira
    EntityMatch$_getQuery_closure1.doCall
    1. com.onresolve.jira.groovy.jql.EntityMatch$_getQuery_closure1.doCall(script13860744228301257966674.groovy:118)
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.GeneratedMethodAccessor3843.invoke(Unknown Source)
    2. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    3. java.lang.reflect.Method.invoke(Unknown Source)
    3 frames
  5. Groovy
    MetaClassImpl.invokeMethod
    1. org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:90)
    2. groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233)
    3. org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
    4. groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:884)
    4 frames