How to maintain forge gadget memory

Hi Everyone,

How do I maintain memory of the dashboard ?
I want to maintain the memory of the dashboard that already generated the output. Even the page is refreshed, the gadget is refreshed or the page is closed and opened back that generated chart/data must remain. However, if the same gadget is used again (new one) in the same page (or another dashboard page), it should ask for inputs. Should not maintain memory from previous dashboard. Methods I tried maintains memory for new gadgets too
I used Jira-Dashboad-Gadget template with Custom UI kit

You can’t.

Dashboards are completely oblivious to the state of any data being displayed by any of the gadgets on them. They are just a ‘canvas’ on which gadgets are arranged, so they have no ‘memory’ that could be retained.

Even the page is refreshed, the gadget is refreshed or the page is closed and opened back that generated chart/data must remain.

You can’t do that either.

When a dashboard page is closed, the page is essentially ‘destroyed’ and any in-memory state is lost. The next time the dashboard is opened, all the gadgets refresh themselves and their data / charts.

This is exactly what dashboards and gadgets are designed to do… be dynamic, not static.

Hi @sunnyape
The dashboard available in Jira developed by atlassian can maintain the configuration, it is not ike I have to choose filter everytime I open the dashboard. How is thi sbeing done?

You are changing the topic. Now you are talking about gadgets maintaining their configuration, not their memory (a recollection of past “generated chart/data” as you put it), which is totally different thing.

All gadgets maintain (keep) their configuration, such as their filters, when that configuration is defined. This does not change no matter how many times the dashboard page is closed or refreshed.

If your dashboard gadgets are somehow losing their defined configurations every time the dashboard page is opened or refreshed, then you are doing something seriously wrong somewhere!

Hi @sunnyape

Thank your your reply, I am new to forge so I am still trying to understand it. I have 2 issues now:

  1. My jira gadget that I built, once I add to a dashboard screen, I can input data and map generated accordingly. However if I refresh the page or close and come back the input data I selected earlier is not maintained. Unlike other jira dashboards, they keep the selection although page refreshed or closed. I am not sure what I am missing

  2. I have deployed the gadget to production, yet I only can use it in edit screen, when I do the configurations and click on ‘Done’, the is a message ‘This gadget hasn’t been configured yet.To configure this gadget, click the ‘Edit’ button situated at the top of your dashboard.‘ I am not sure about this too