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

Not possible to filter issues with inSprint() function

Georgi Mitov Feb 03, 2013


We have the latest version of the ScriptRunner plugin (2.1-BETA-8) and started using it for custom validation - works very nice, thanks!

However, we have an issue with the inSprint() function: Although correct board and sprint are specified as parameters, the function returns no results, even though there are issues in the sprint.

Any ideas what might be going wrong?



2 answers

1 accepted

0 votes
Answer accepted
Georgi Mitov Feb 03, 2013

Hi Jamie,

First of all - thanks for your prompt reply!

Yes - both are specified by name - like this:

issueFunction in inSprint("Board-name", "Sprint-name")

where Board-name and Sprint-name are replaced with their real values.

However, the reason might be that we were having a custom field named "Sprint" already before start using Green Hopper. So now, the Green Hopper sprint field is named "Sprint_GH", while our previous sprint field is named "Sprint" ...

Maybe this is the source of the trouble?

If the above is indeed the case, would it be possible to base the queries in the Script Runner plugin code on field ID, instead on the field name? I guess other people / companies might run into similar issues ...


Georgi Mitov Feb 03, 2013

Update on the issue: I have renamed our internal "sprint" field to something else ("Sprint_int") and then renamed the Green Hopper sprint field to its default name - "Sprint".

This solved the issue.

Still, as we have many queries in Confluence which reference the old "Sprint" field, having a possibility to use the Field ID, instead its name would be appreciated.

JamieA Feb 03, 2013

Yeah, that will be the reason... I need to have a delve in the GH source to see how it chooses which Sprint field to use, then do the same.

JamieA Feb 03, 2013

I've committed the fix for this, so it will be in the next release. I think you can "watch" the plugin in marketplace, so you'll get notified when it's released.

Georgi Mitov Feb 03, 2013

Thanks a lot for the fast reaction! Very much appreciated :)

I will be watching the pluging. Any idea when to expect the new release?

JamieA Feb 03, 2013

Not long, just when I have something else worthwhile to add to the release. You can get a snapshot version with this fix from here

0 votes
JamieA Feb 03, 2013

Hrm... you specified the board and sprint by name, right?

Do you have more than one custom field called Sprint?

What is the query that the board in question uses (Tools -> Configure).

We might need to discuss this off this list because I may need more info from you.

Also - what DBMS are you using? And can you check the log for errors...

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Marketplace Apps & Integrations

Demo Den Ep. 4: Continuous Integration with CircleCI & Jira Software

Get ready! Demo Den Episode 4 is coming your way on Tuesday, May 28, 2018 with a Continuous Integration and Delivery special demo. CircleCI Director of Solutions Engineering, Eddie Webb will show us ...

454 views 0 4
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you