Last component or item selected in Tree and Coverage is not remembered

Problem

  • The last component navigated to, Tree or Coverage, is not remembered when revisiting R4J.

  • The last selected item in Tree or Coverage is not remembered when revisiting the component.

Cause

Saving and auto-loading of user UI state per project is not possible when third-party cookies are disabled for the R4J Cloud domain.

Workaround(s)

  1. Change your cookie settings

    • Go to chrome://settings/cookies

    • In the General Settings section, select “Allow all cookies“ OR “Block third-party cookies in incognito“

  2. Allow cookies for the R4J URL

There is no workaround for browser Incognito mode since the settings above cannot be applied.

Technical Background

All Jira Cloud apps including R4J, run on an IFrame and are served by the app provider. Browsers interpret apps running on an IFrame as a third-party application. Blocking third-party cookies on the browser doesn’t only prevent third-party applications from saving cookies, but also from saving any information in the user browser. This includes the browser local storage.

Although R4J doesn’t use cookies, it uses the browser local storage to save users' preferences. If you decide to generally block third-party cookies, without making an exception for R4J, it won’t be able to remember the last items you’ve selected.