Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Custom picker using REST API as source - performance and caching

Edited

Hi

Is there anyone with experience in using Scriptrunner to write a custom picker scripted field?

I have to following use case: I will attempt to use the REST API from SAP4/HANA to retrieve WBS Elements as documented here:
https://api.sap.com/api/OP_API_PROJECT_V3_0001/path/get_WBSElement
We use those elements to store project numbers. We will use them in Jira Stories to determine, which stories belongs to which project number in SAP.

I found a documentation from adaptavist about how to set up a custom picker field using REST API:
https://docs.adaptavist.com/sr4js/8.11.0/features/script-fields/built-in-script-fields/custom-picker?utm_source=product-help

Now my question: According to the documentation, "Retrieving information from REST resources can be expensive. Each time the issue is viewed, the code making the REST request is called in order to get the item; hence it is advisable to cache responses." 

- therefore, it is advisable to use caching. The documentaion of Adaptavist says: "As always, with caching, there is a balance between the cache size (limiting the memory consumed by the cached objects), the staleness of objects in the cache, and the cost of reloading new ones."

I have never used caching before and therefore have no experience about how to achieve the best amount of caching. Has anyone ever done such thing before? Are there any best practises about this? What should I do to determine the optimal amount of caching?

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events