Disable certain JQL functions in Script Runner?

Is there an easy way to disable certain JQL functions within Script Runner? We want to mask the non-performant ones in our environment (dateCompare in particular).

1 answer

1 accepted

0 vote

dateCompare was replaced by expression, but both should be reasonably performant depending on what version of the plugin you are using. Which is...?

Someone else asked for this so I created https://jamieechlin.atlassian.net/browse/GRV-591.

 

Sorry, we're on 2.1.6, which is old but what we're limited to until the next upgrade cycle. We have close to 1 million issues (6.1.7), and it was taking about 200 seconds to run, and consuming a lot of heap memory that required GC'ing. A user may have used it without any type of preliminary filtering in the function. I did find "jql/plugin-jql-functions.json" which seems like it could disable functions?

Yes, those functions, in that version, with that many issues will cause problems. In 2.x you can disable them from Admin -> Script JQL functions.

Thanks, don't know how I missed it!

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jul 10, 2018 in Marketplace Apps

If you’re an Atlassian app developer, you’ll want to know about Atlas Camp!

This September 6-7, hundreds of Atlassian App developers will flock to Barcelona Spain to build skills, discover product roadmaps, meet face-to-face with the Atlassian team, and learn how to extend t...

179 views 0 4
Read article

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