I have develped a JQL function by extending AbstractJqlFunction and implementing the validate and getValues methods.
During testing I have noticed that the getValues method is called twice when I click on the search icon or press enter on advanced search input field.
Does anyone knows if this is for a reason or it is a bug?
Sometimes the first getValues logs are before the validate method.
I have tried on Jira 6.1.7 and 6.2.4
Community moderators have prevented the ability to post new answers.
This is old but I also experienced the same thing on JIRA 7.1.8. Wondering reason behind this.
May be a bug in your version of jira. I only use the type where you implement getQuery... I justed tested that and it is only called once.
You can convert from one to the other by using a ConstantScoreQuery...
return new ConstantScoreQuery(new IssueIdFilter([ list of issue IDs as strings ]))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, thank you for the answer but you use your own Abstract function in Groovy runner with the doQuery override which as I see (i may be wrong) works only with the issuefunction customfield. The Original Jira api does have only the AbstractJqlFunction which needs to override validate and getValues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oh sorry, my bad.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the meantime I'm pretty sure that the first getValues is called by a separate thread, concurently with validate as their logs mingle in the log. the second getvalues is always follows the validate.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.