Hi,
I am trying to write a custom jql. But the precomputation functionality is bit complex to implement for my usecase. I can't store all precomputation ids and the parameters and check every one of them every time when there is a change in data to update with new computation. For example, some of my custom JQLs can be impacted by actions like update in custom fields or linking issues. For that I may have to update hundreds of precomputations. Also it is hard for tracking all the parameters for the precomputations.
As a solution, I expect a way to delete precomputation via REST API or to disable pre-computation via atlassian-connect.json config. It seems, with precomputation, I have to make hundreds of requests to JIRA every minute.
Jira Cloud’s custom JQL functions use precomputation to cache results for performance reasons, and that behavior is controlled entirely by Jira’s internal query engine. There isn’t a public REST endpoint or `atlassian-connect.json` flag to delete or disable precomputed results. The platform automatically invalidates cached results when issue data changes, but if your function depends on complex conditions such as issue links or custom field updates, you’ll need to manage the cache lifecycle yourself within the JQL function module by implementing the `invalidatePrecomputation` logic in your app’s backend.
Hello @Mercy
Can you please provide a more detailed description of how to "manage the cache lifecycle within the JQL function module"?
Can you also provide links to your sources of information on this topic.
Thanks in advance
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I spend hours trawling through all of Atlassian's development frameworks, libraries and APIs for Jira Cloud trying to find what you described... but found nothing. I found no mechanism, anywhere, that disables or prevents a JQL function from performing what the OP describes as 'pre-computation', or to "manage the [JQL] cache lifecycle" as you stated, whether or not that JQL function was a custom one or not.
Where are you getting your information from?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Managing pre-computation for custom JQLs with frequent updates can be tricky. Tracking every pre-computation ID isn’t practical, especially when changes impact hundreds of entries.
Currently, Jira doesn’t provide a REST API to delete pre-computation or a configuration to disable it. A practical workaround is to keep computations stateless or handle caching outside Jira.
For reference, I found some helpful API structure material on https://www.icertglobal.com Cert Global
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.