Does validate method called before getValues method in JQL ?

Hi ,

I am upgrading jira from 5.0.7 to 5.2.11

Just wanted to know the flow of method calls in customJQL ?

In my case getValues method is getting called before validate method which is breaking the validation.

2 answers

This widget could not be displayed.

Typically it does, but not always (which is a bug imho).

If you are running a query in the issue nav, it will always be called first, however I have seen occassions where it doesn't, for instance when starting up jira and then going to the issue nav, the last query that user ran is run.

My workaround is to extract any query params etc in the getValues method as well, so factor out that code into some other routine rather than use class fields (which may cause you problems, as there is only ever a single JqlFunction instance).

This widget could not be displayed.


for a workaround (not a solution) : I am calling the validate method from getValues method.

Still debugging and finding the correct solution.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

196 views 1 3
Join discussion

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