Scriptrunner Behaviours - Pick from JIRA issues not working

Hi,

I have followed this walk through https://scriptrunner.adaptavist.com/4.1.3.16/jira/behaviours-conversions.html#_walkthrough_pick_from_jira_issues in order to set up an issue picker field, changing the field name (1) and JQL (2) as appropriate.

Whenever I try use the field (enter text or hit the drop down button) I get a 'The JIRA server was contacted but has returned an error response. We are unsure of the result of this operation' browser error.

I have tuned on logging in behavious and noticed the following lines when the error occurs

2016-07-28 19:32:39,919 http-bio-443-exec-1611 ERROR daves 1172x552329x6 1ytpnxo 172.20.188.5 /rest/scriptrunner-jira/latest/issue/picker [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: No signature of method: com.sun.proxy.$Proxy472.parseQuery() is applicable for argument types: (com.atlassian.jira.user.DelegatingApplicationUser, java.lang.String) values: [daves(daves), issue = JTD-6]
Possible solutions: parseQuery(com.atlassian.crowd.embedded.api.User, java.lang.String)
groovy.lang.MissingMethodException: No signature of method: com.sun.proxy.$Proxy472.parseQuery() is applicable for argument types: (com.atlassian.jira.user.DelegatingApplicationUser, java.lang.String) values: [daves(daves), issue = JTD-6]
Possible solutions: parseQuery(com.atlassian.crowd.embedded.api.User, java.lang.String)
	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:58)
	at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:49)
	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)
	at com.onresolve.scriptrunner.runner.rest.jira.LuceneSearchIssuePickerSearchProviderWithSort.getRequest(LuceneSearchIssuePickerSearchProviderWithSort.groovy:43)
	at com.atlassian.jira.bc.issue.search.AbstractIssuePickerSearchProvider.getResults(AbstractIssuePickerSearchProvider.java:71)
	at com.onresolve.scriptrunner.runner.rest.jira.IssuePickerEndpoint.picker(IssuePickerEndpoint.groovy:72)  <+2> (DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)  <+19> (DispatchProviderHelper.java:234) (DispatchProviderHelper.java:100) (DefaultMethodInvocation.java:61) (ExpandInterceptor.java:38)

Not sure where to go from here - any help appreciated

Thanks

Dave

 

1 answer

Hi David,

This is a known issue, we filed a bug report for it SRJIRA-2015, are you able to see it ? If yes could you please add  yourself in watchers to be notified when get fixed ?

regards

Thanos

Thanks very much Thanos - i'm now watching that issue.
Is this a recent change? Reason I ask is because I haven't deviated from the tutorial but noticed that no one else seemed to be reporting any issues with it in the comments.
Cheers
Dave

Hi David,

Is a relative new feature and also the majority of people do not ask SR related questions in the documentation comment section but in AA (as you did smile)

regards

Thanos

Thanks Thanos!

Just to add - the testing was mostly done on JIRA 7 - this only affects JIRA 6.

Hi David, 

I sent the wrong bug link - your bug is different that the one descriptbed in the linked issue, I updated to point in the right one.

Apologies for any inconvenience.

regards,

Thanos

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in Marketplace Apps

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,137 views 0 8
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you