Script Runner inSprint function does not return any values

Hi,


I've installed the latest version of the Script Runner plug-in, but i'm unable to use the inSprint function.
Use case:
I click on the 'View in Issue Navigator' link in the Plan mode from a certain Rapid Board, but if i have a planned (or started) sprint with a number of issues, a different number of issues (or none) are returned.

For example;
In planned sprint 'quark' i have 8 issues.
If i press the 'View in Issue Navigator' button, i get 'no issues were found to match your search'.
(issueFunction in inSprint("Product Backlog - Team Zilver", "quark"))

in 'quark 2' i have 13 issues, but in the issue navigator 29 issues are returned.

I've read the 'there are a couple of caveats' on this page: https://jamieechlin.atlassian.net/wiki/display/GRV/Scripted+JQL+Functions

but it seems that my problem is something different.
Any ideas?

Script runner version: version 2.1 beta-8
Jira version:5.2.7
Greenhopper version:6.1.4

12 answers

0 vote

I need to revisit this... I've rewritten this code to use a different implementation... will release soon.

Thanks for your reply Jamie.

I'll wait a while then with introducing the new Script runner here :)

0 vote

After about three rewrites I've hit on some new way, please can you try the latest: https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner/version/978

Hi Jamie,

First, thanks for your efforts.
Second, i've installed BETA9 of your plug-in.

Figured, lets start with a clean slate:
Stopped jira,removed the /caches/ directory, and all the other plugins.
Started Jira, reinstalled Greenhopper, reinstalled Script Runner, started a full reindex.

After the reindex, i tried opening an existing board and existing upcoming sprint:
Warning: The JSON input text should neither be null nor empty.

Tried removing the upcoming sprint, and creating a new one 'xxx'.
Warning: The JSON input text should neither be null nor empty.

Any ideas?


0 vote

Edwin, can you see if any of the three restrictions apply to you: https://jamieechlin.atlassian.net/wiki/display/GRV/Scripted+JQL+Functions#ScriptedJQLFunctions-inSprint(boardname,sprintname)

As I say, it's difficult to justify spending much time on this, as I can't believe it will be long before a similar function is in GH.

Hi Jamie,

No, none of the restrictions apply to me. (logged in with a local user,
I understand you don't want to put much effort in it anymore.
Just checked the logging, and i see one ERROR:

2013-03-18 12:52:46,676 http-bio-8080-exec-11 ERROR admin 772x2913x1 7auc9z 10.60.24.36 /rest/issueNav/1/issueTable/ [jira.groovy.jql.AbstractScriptedJqlFunction] Failed to execute http://xxxx.xx.xxx.xxxxx.nl:8080/rest/greenhopper/1.0/rapidviews/list?query=Product Backlog - XXX - status code: 505

0 vote

That's interesting... I will look into that. Are you running jira in it's native tomcat, ie just vanilla, or do you have some other container, or apache / nginx in front of jira?

0 vote

Ah sorry, it's a really stupid encoding bug... will fix very soon.

0 vote

If you want to test it you could temporarily rename the board to not have spaces in it, or try with another board. Will release a new version tonight anyway.

0 vote

Can you try the latest version please... (thanks for your patience).

Jamie; sorry for my late response, i tried your latest version, and that seems to work correctly for new upcoming sprints; already existing upcoming sprints seemed to work 50-50.

This is workable for us though.

Jamie; i just installed it in our production instance, but the only thing i get is 'Connection refused'.
I've checked if the remote api is on, and i tried executing the action with a remote and local user.

Any other suggestions?

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published May 30, 2018 in Marketplace Apps

Three tips for boosting your board's efficiency with Story Maps

Trello is one of the most effective tools for driving your sprints. It's customizable for every Agile team and product owners and Scrum masters (SM) love it. However, Agile teams often struggle with:...

828 views 2 9
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