Hello everyone,
I am currently developing a Jira plugin using Forge that provides a custom JQL function to enhance user experience. This is a “runs on Atlassian” app, where the JQL function is evaluated by triggering a Forge function.
Based on the documentation, my understanding is that these custom JQL functions rely on precomputed data that the Forge function provides, which Jira then uses to evaluate the query. I would appreciate it if you could confirm whether this high-level understanding of the workflow is correct.
I have some specific questions about the behavior and limitations of these precomputations. I have found what I believe to be the answers to some of them, but I am not entirely certain and would be grateful if the community could verify their accuracy.
Here are my questions:
-
Deleting Precomputations: Is there a way to programmatically delete or clear precomputed values for a JQL function?
- My finding: My research suggests that this is not possible. Is that correct?
-
Modifying TTL: Is it possible to change the 7-day Time To Live (TTL) for precomputed data?
- My finding: I believe the answer is no, and the 7-day TTL is a fixed duration. Can anyone confirm this?
-
TTL Reset on Update: When I update the precomputed data for a function, does the 7-day TTL for that data reset from the moment of the update?
-
Data Scope (User vs. Instance): Are precomputations stored on a per-user basis, or are they instance-wide?
- My finding: My understanding is that they are instance-wide, and there is no way to make them user-specific. Is this accurate?
-
Disabling Precomputation: Is it possible to disable the precomputation feature entirely for a custom JQL function and have it evaluated in real-time?
- My finding: I found a community thread (Creating a custom JQL function without precomputation) that indicates this is not possible. I just want to double-check if this is still the definitive answer.
-
TTL Trigger: Regarding the 7-day TTL, does the countdown start from the moment the data is first cached, or does it reset from the last time the data was used or accessed?
-
Precomputation Limits: Are there any documented limits on the volume of precomputed data we can store? For example, would I encounter performance issues or errors if I were to save thousands of precomputation data sets for my function across many issues?
Thank you in advance for your time and assistance. Any insights or clarifications you can provide would be greatly appreciated.
Best regards,
Meriç Öztiryaki