It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Disable certain JQL functions in Script Runner?

David Yu Dec 22, 2014

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 votes
Answer accepted
JamieA Dec 23, 2014

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.

 

David Yu Dec 23, 2014

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?

JamieA Dec 23, 2014

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.

David Yu Dec 23, 2014

Thanks, don't know how I missed it!

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Marketplace Apps & Integrations

Webinar invitation: Generate custom Jira Cloud PDF reports and exports

Jira may be a staple part of your workday, but your colleagues, customers, business partners or an auditor might need information presented in a different format, that is easy to access and read. And...

63 views 0 1
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you