Hi All,
When I run the following query it only returns tickets with "Error" in the summary field and not "error". I'm running Jira 7.3.8 on Postgre and Adaptavist Scriptrunner 5.2.2
issueFunction in issueFieldMatch('project=SD AND created>startOfDay()', summary, 'Error')
Tanx for looking
Yes, this is correct. I think it is case sensitive.
Cheers!
Dyelamos
Thanks for the update Dyelamos.
I think it would be more useful if it was not case-sensitive.
Regards,
Denis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well not at all.
What if you are looking for a key for a project that was "KEY" for example. Would you want to fetch the issues that casually mention "key"?
No. This is ASCII, there is a huge subset of characters to be used for a reason.
Since this question is answered, feel free to mark my question as accepted so that other users know that this question has been answered.
Cheers!
DYelamos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for the update.
How about adding adding an extra parameter to the method which would allow either a case-sensitive or non case-sensitive search?
Regards,
Denis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That is an entire different matter. I actually agree that could be of use. Feel free to submit a feature request at www.productsupport.adaptavist.com
Cheers!
DYelamos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried the case insensitive switch and it worked for me:
issueFunction in issueFieldMatch("project=SD","Summary","(?i)error")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Denis MooreI think @Wolfgang Kindl's answer should be marked as the accepted answer, because it is both more accurate and what people are actually looking for (meaning issueFieldMatch is neither case sensitive nor case insensitive; it uses a regex that can be defined either way).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Wolfgang Kindl ,
I tried using the same on my instance. JQL i used:
issueFunction in issueFieldExactMatch("project = ABC", "Summary", "(?i)Test")
I know there is an issue with summary "test", but the JQL does not return it as a result.
Script Runner version 5.5.9
Jira version: 7.13.5
Using JIRA through server
Could you please help
Thanks and Regards,
Swapnil Srivastav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.