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

0 votes

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).


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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,990 views 12 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot