It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Script Runner inSprint function does not return any values


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:

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

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 :)

After about three rewrites I've hit on some new way, please can you try the latest:

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?

Edwin, can you see if any of the three restrictions apply to you:,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 /rest/issueNav/1/issueTable/ [jira.groovy.jql.AbstractScriptedJqlFunction] Failed to execute Backlog - XXX - status code: 505

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?

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

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.

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Apr 03, 2019 in Marketplace Apps

How to estimate projects more accurately?

Gaining insight into your team’s effectiveness and choosing the right estimation technique.   Estimating projects is hard. It is because people have the tendency to underestimate the time thin...

280 views 2 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