-
Bug
-
Resolution: Fixed
-
Low
-
9.1.0, 9.2.0, 9.3.0
-
9.01
-
8
-
Severity 2 - Major
-
42
-
-
Issue Summary
This is reproducible on Data Center: yes
Steps to Reproduce
- Running Jira 8.x
- Upgrade to Jira 9.x
- Try to access an Issue Activity tab, it is not loaded
- Reload the page, the Activity tab will load
Expected Results
Activity tab show load in first access on the Issue.
Actual Results
It is necessary to reload the page to see activity tab.
Workaround
#1 To by pass this you can disable a dark feature in Jira: com.atlassian.jira.lazyload.activity.tabs
To manage dark features, access the following URL as a Jira administrator account:
<BASE_URL>/secure/admin/SiteDarkFeatures!default.jspa
Disabling a Dark Feature
In order to disable a feature flag, type <feature_flag_name>.disabled in the Enable dark feature text area and click the Add button. For example,
com.atlassian.jira.lazyload.activity.tabs.disabled
Make sure to not have double ".disabled" suffix at the end of feature flag name.
OR
#2 The following HTML snippet can be inserted into the announcement banner:
(actually, in any place that renders HTML on the page or in any JS file, then w/o <script> tags, which is executed on PIN & GIN pages)
<!-- BEGIN [JRASERVER-74303] --> <script> (function() { resourcePhaseCheckpoint.defer.then(() => { try { const Events = require('jira/util/events'); const jQuery = require('jquery'); console.log('__ [JRASERVER-74303] applying fixes...'); // 1st part: isolating $onReady handlers try { const original = jQuery.fn.ready; jQuery.fn.ready = function (fn) { try { return original.call(this, fn); } catch (e) { console.error('__ [JRASERVER-74303] An error occurred in one of the jQuery onReady callbacks', e); return this; } }; } catch (e) { console.warn('__ [JRASERVER-74303] could not isolate $onReady handlers', e); } // 2nd part: isolating JiraEvents handlers try { function isolateCallback(fn) { return typeof fn === 'function' ? function isolatedCallback(...args) { try { return fn.apply(this, args); } catch (e) { console.error('__ [JRASERVER-74303] An error occurred in one of the JiraEvents callbacks', e); } } : fn; } (function(originalBind) { Events.bind = function bindWithIsolatedCallbacks(types, fnOrEventData, fnOrFalse) { originalBind(types, isolateCallback(fnOrEventData), isolateCallback(fnOrFalse)); }; })(Events.bind); (function(originalBind) { Events.one = function bindWithIsolatedCallbacks(evt, handler) { originalBind(evt, isolateCallback(handler)); }; })(Events.one); } catch (e) { console.warn('__ [JRASERVER-74303] could not isolate JiraEvents handlers', e); } } catch (e) { } }); })(); </script> <script type="module"> require([], function() { resourcePhaseCheckpoint.defer.then(() => setTimeout(() => { try { const Reasons = require('jira/util/events/reasons'); const Types = require('jira/util/events/types'); const Events = require('jira/util/events'); const jQuery = require('jquery'); // 3rd part: re-initialising activity tabs try { const module = jQuery('#activitymodule'); if (module.length && !module.data('is-ready')) { // it should already be marked as ready at this point console.log('__ [JRASERVER-74303] re-initialising activity tabs ...'); Events.trigger(Types.NEW_CONTENT_ADDED, [module, Reasons.panelRefreshed]); } } catch (e) { if (module.data('is-ready')) { console.warn('__ [JRASERVER-74303] Activity tabs should be init. now, but some other error occurred', e); } else { console.error('__ [JRASERVER-74303] could not re-init. Activity tabs', e); } } } catch (e) { } })); }); </script> <!-- END [JRASERVER-74303] -->
- is related to
-
JRASERVER-74165 Comments are not automatically updated once they are posted
- Closed
- is cloned by
-
MNSTR-6483 Loading...