I would like to create a filter to show those issues whose custom field "Name" starts by a specific letter, let's say, "A".
I am currently using:
Name ~ "A*"
But it is returning wrong results (issues where Name does not start with "A")
Does anybody have any clue about how to perform that search?
Thanks a lot,
Thanks for your answer.
However, I am receiving an error:
The JIRA server could not be contacted. This may be a temporary glitch or the server may be down.
When performing the following query:
issueFunction in issueFieldMatch("project=XXX", "Nom", "^[a-eA-E]")
If I change and use the field "Assignee" instead of the custom field "Nom" (Text Field (< 255 characters)), it works fine.
Do you know what may be happening?
Logs, in case they may help:
2013-03-08 08:21:48,804 http-8080-2 DEBUG bignoan 501x5364x2 nda8qa 126.96.36.199,188.8.131.52,127.0.0.1 /rest/issueNav/1/issueTable/ [jira.groovy.jql.AbstractScriptedJqlFunction] Subquery (project=PMOCONTACT) took 30 ms 2013-03-08 08:21:48,823 http-8080-2 ERROR bignoan 501x5364x2 nda8qa 184.108.40.206,220.127.116.11,127.0.0.1 /rest/issueNav/1/issueTable/ [common.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service java.lang.NullPointerException at java.util.regex.Matcher.getTextLength(Matcher.java:1140) at java.util.regex.Matcher.reset(Matcher.java:291) at java.util.regex.Matcher.<init>(Matcher.java:211) at java.util.regex.Pattern.matcher(Pattern.java:888) at sun.reflect.GeneratedMethodAccessor1519.invoke(Unknown Source) <+1> (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSite.invoke(PojoMetaMethodSite.java:189) 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(script1362578899598384340786.groovy:107) <+2> (DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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:877) at groovy.lang.Closure.call(Closure.java:412) at org.codehaus.groovy.runtime.DefaultGroovyMethods.eachWithIndex(DefaultGroovyMethods.java:1368) at org.codehaus.groovy.runtime.dgm$206.invoke(Unknown Source)
There are more lines, but characters are limited here.
I have a similar issue, looking for issues with lables starting with "c/" (as in c/something). Unfortunately, the qurey I am using also returns results like "asc/something" etc, i.e. not starting with but containing "c/".
My query: issueFunction in issueFieldMatch("", labels, "c/.*")
Could you please advise?
Thanks for you answer, Henning.
However, I have one doubt: I have not been able to find where to define a new JQL function within Script Runner.
Even if I follow Jamie Echlin's instructions, I cannot find the described options: Admin -> Script JQL Functions
Any clue would be appreciated! Thanks
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot