"o is undefined" when attempting to view hierarchy or create plan
Asked by Wintel Engineers:

I am getting the following error on a fresh install of Advanced Roadmaps:

```
o is undefined

o@https://test-servicedesk.tmc.tmcaz.com/s/97989993f1ec1066bfff9faa770199a2-CDN/r5zfjj/808001/51dd1c54ee3f1786aa3f43299d29f11e/3.29.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-common-shared-scripts/com.atlassian.jpo:jpo-wr-page-common-shared-scripts.js?locale=en-US:5:60693
build@https://test-servicedesk.tmc.tmcaz.com/s/97989993f1ec1066bfff9faa770199a2-CDN/r5zfjj/808001/51dd1c54ee3f1786aa3f43299d29f11e/3.29.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-common-shared-scripts/com.atlassian.jpo:jpo-wr-page-common-shared-scripts.js?locale=en-US:5:61036
1002/o</</p.prototype.buildMessage@https://test-servicedesk.tmc.tmcaz.com/s/97989993f1ec1066bfff9faa770199a2-CDN/r5zfjj/808001/51dd1c54ee3f1786aa3f43299d29f11e/3.29.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-dependencies-scripts/com.atlassian.jpo:jpo-wr-page-dependencies-scripts.js?locale=en-US:5:2338
1002/o</</p.prototype.initialize@https://test-servicedesk.tmc.tmcaz.com/s/97989993f1ec1066bfff9faa770199a2-CDN/r5zfjj/808001/51dd1c54ee3f1786aa3f43299d29f11e/3.29.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-dependencies-scripts/com.atlassian.jpo:jpo-wr-page-dependencies-scripts.js?locale=en-US:5:2033
common_vendor_1fc82d969f1e74c47c2c</</s.Controller@https://test-servicedesk.tmc.tmcaz.com/s/97989993f1ec1066bfff9faa770199a2-CDN/r5zfjj/808001/51dd1c54ee3f1786aa3f43299d29f11e/3.29.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-common-libs-only-scripts/com.atlassian.jpo:jpo-wr-page-common-libs-only-scripts.js?locale=en-US:525:10318
e@https://test-servicedesk.tmc.tmcaz.com/s/97989993f1ec1066bfff9faa770199a2-CDN/r5zfjj/808001/51dd1c54ee3f1786aa3f43299d29f11e/3.29.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-common-shared-scripts/com.atlassian.jpo:jpo-wr-page-common-shared-scripts.js?locale=en-US:5:25092
e@https://test-servicedesk.tmc.tmcaz.com/s/97989993f1ec1066bfff9faa770199a2-CDN/r5zfjj/808001/51dd1c54ee3f1786aa3f43299d29f11e/3.29.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-common-shared-scripts/com.atlassian.jpo:jpo-wr-page-common-shared-scripts.js?locale=en-US:5:138361
p@https://test-servicedesk.tmc.tmcaz.com/s/97989993f1ec1066bfff9faa770199a2-CDN/r5zfjj/808001/51dd1c54ee3f1786aa3f43299d29f11e/3.29.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-dependencies-scripts/com.atlassian.jpo:jpo-wr-page-dependencies-scripts.js?locale=en-US:5:1751
callback@https://test-servicedesk.tmc.tmcaz.com/s/97989993f1ec1066bfff9faa770199a2-CDN/r5zfjj/808001/51dd1c54ee3f1786aa3f43299d29f11e/3.29.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-dependencies-scripts/com.atlassian.jpo:jpo-wr-page-dependencies-scripts.js?locale=en-US:5:1209
setup/<@https://test-servicedesk.tmc.tmcaz.com/s/97989993f1ec1066bfff9faa770199a2-CDN/r5zfjj/808001/51dd1c54ee3f1786aa3f43299d29f11e/3.29.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-common-shared-scripts/com.atlassian.jpo:jpo-wr-page-common-shared-scripts.js?locale=en-US:27:288573
common_vendor_1fc82d969f1e74c47c2c</</M.delay/<@https://test-servicedesk.tmc.tmcaz.com/s/97989993f1ec1066bfff9faa770199a2-CDN/r5zfjj/808001/51dd1c54ee3f1786aa3f43299d29f11e/3.29.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-common-libs-only-scripts/com.atlassian.jpo:jpo-wr-page-common-libs-only-scripts.js?locale=en-US:110:14489


===================
=== Client Info ===
===================

User agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0 
Local time: Thu Jul 02 2020 11:37:55 GMT-0700 (Mountain Standard Time)

===================
=== Plugin Info ===
===================

Plugin build: 3.29.0

===================
=== System Info ===
===================

Jira Title: TESTING: TMC Service Desk
Jira Version: 8.8.1
Agile Version: Not present
```


Answers:
author: Wintel Engineers
body: Closing this as resolved.

Resolution: Install the "Jira Software" component

Turns out that it is required but installation does not verify that it is there before installing. Once it was installed and licensed, Advanced Roadmaps worked as expected.

comments: author: n0manarmy
body: I'm confused by this answer. Was Advanced Roadmaps installed without JIRA installed? Or is there a "Jira Software" module in the apps market that is not installed automatically with the Advanced Roadmaps application?


author: Sachin
body: I have never seen that type of error before, but here is a similar [one](https://community.atlassian.com/t5/Jira-Service-Desk-questions/Portfolio-error-quot-t-is-undefined-quot/qaq-p/882083).

comments: author: Wintel Engineers
body: Thank you very much. I had found that issue when I was searching for solutions as well. As this is a fresh install I know that nobody has added any custom fields to this module's screens and if I read and understood the referenced issue it was caused by someone adding a custom field to the module's screens.


author: Sachin
body: Do you see any other errors in your app logs ? I am trying to think what could be the issue. Also, did you try uploading the jar file manually?


author: Wintel Engineers
body: I checked my catalina.log and there were no errors presented there. Is there another log that may have any clues?


author: Sachin
body: You can check the [atlassian-jira.log](https://confluence.atlassian.com/adminjiraserver/logging-and-profiling-938847671.html). If you are still unable to resolve the issue, open a ticket with Atlassian [support](https://support.atlassian.com/contact/) for further help.


author: Andrew Morin
body: Just in case you haven't done this we always clear the plugin cache when we install a new or update and old one...

To completely clear all caches you have to do the following 4 steps:

1. Shut down your JIRA
2. Clear your cache. To do this, first access your JIRA installation directory. There, access the 'Work' folder. Delete the contents of the folder. **DO NOT DELETE THE WORK FOLDER**. Only delete the contents.
3. Clear your plugin cache. To do this, access your JIRA Home folder. There, access the 'Plugins' folder. Delete the '.osgi-plugins' and the '.bundled-plugins' folders. Not to worry, these 2 folders will be rebuilt when JIRA starts
4. Startup your JIRA


author: Wintel Engineers
body: Alas, no cheese down those holes...

I checked the logs on the server and found no mention of any errors

I cleared the cache as described and the problem persists

I captured the JavaScript log and this is what I see:

```
JQMIGRATE: Migrate is installed, version 1.4.1 batch.js:72:506
DEPRECATED JS - AJS.debounceImmediate has been deprecated since 8.0.0 and will be removed in 9.0.0. Use equivalent functions from libraries like lodash / underscore instead 
mKt5@https://play-servicedesk.tmc.tmcaz.com/s/21f8ac30d39a7439dd6d8cc778dbbb12-CDN/yp3bg0/808001/5111f34c23ad636e596b622e7d4d8222/f665e96fa2b0ea9c68683fca8f17a311/_/download/contextbatch/js/_super/batch.js?locale=en-US:511:10107 batch.js:239:465
Use of `window.Backbone` through AUI is deprecated and will be removed in AUI 9.0 batch.js:945:266
Use of `window._` through AUI is deprecated and will be removed in AUI 9.0 batch.js:1113:268
DEPRECATED JS - AJS.debounce has been deprecated since 8.0.0 and will be removed in 9.0.0. Use equivalent functions from libraries like lodash / underscore instead 
init@https://play-servicedesk.tmc.tmcaz.com/s/21f8ac30d39a7439dd6d8cc778dbbb12-CDN/yp3bg0/808001/5111f34c23ad636e596b622e7d4d8222/f665e96fa2b0ea9c68683fca8f17a311/_/download/contextbatch/js/_super/batch.js?locale=en-US:526:2072 batch.js:239:465
DEPRECATED JS - AJS.debounce has been deprecated since 8.0.0 and will be removed in 9.0.0. Use equivalent functions from libraries like lodash / underscore instead 
T@https://play-servicedesk.tmc.tmcaz.com/s/21f8ac30d39a7439dd6d8cc778dbbb12-CDN/yp3bg0/808001/5111f34c23ad636e596b622e7d4d8222/f665e96fa2b0ea9c68683fca8f17a311/_/download/contextbatch/js/_super/batch.js?locale=en-US:571:5803 batch.js:239:465
To be compatible with jQuery 1.9 and higher, You must pass a selector to tipsy's live argument. For instance, `$(document).tipsy({live: 'a.live'});` batch.js:1347:3803
DEPRECATED JS - Inline dialog constructor has been deprecated and will be removed in a future release. Use inline dialog 2 instead. 
_initDialog@https://play-servicedesk.tmc.tmcaz.com/s/0e054de96624c1cf5c8097997054c0c9-CDN/yp3bg0/808001/5111f34c23ad636e596b622e7d4d8222/3d7f02c3095a672b870808af09f0f796/_/download/contextbatch/js/com.atlassian.jpo.page-common,atl.general,jira.global,jira.general,com.atlassian.jpo.page-dependencies-styles,-_super/batch.js?baseurl-check-resources=true&healthcheck-resources=true&jpo.flat=true&locale=en-US:1856:2832 batch.js:239:465
Downloading resources:
js!/s/d41d8cd98f00b204e9800998ecf8427e-CDN/yp3bg0/808001/5111f34c23ad636e596b622e7d4d8222/be9ff0efea54a6453d2ac60b92912a09/_/download/contextbatch/js/browser-metrics-plugin.contrib,-_super,-atl.general/batch.js?baseurl-check-resources=true&healthcheck-resources=true!order batch.js:119:107
DEPRECATED JS - Dropdown constructor has been deprecated and will be removed in a future release. Use Dropdown2 instead. 
i.bindConfigDashboardDds@https://play-servicedesk.tmc.tmcaz.com/s/21f8ac30d39a7439dd6d8cc778dbbb12-CDN/yp3bg0/808001/5111f34c23ad636e596b622e7d4d8222/f665e96fa2b0ea9c68683fca8f17a311/_/download/contextbatch/js/_super/batch.js?locale=en-US:4143:499 batch.js:239:465
DEPRECATED JS - Cookie has been deprecated since 5.8.0 and will be removed in a future release. Use cookie instead. 
@https://play-servicedesk.tmc.tmcaz.com/s/0e054de96624c1cf5c8097997054c0c9-CDN/yp3bg0/808001/5111f34c23ad636e596b622e7d4d8222/3d7f02c3095a672b870808af09f0f796/_/download/contextbatch/js/com.atlassian.jpo.page-common,atl.general,jira.global,jira.general,com.atlassian.jpo.page-dependencies-styles,-_super/batch.js?baseurl-check-resources=true&healthcheck-resources=true&jpo.flat=true&locale=en-US:549:108 batch.js:239:465
Analytics event 'rm.jpo.error.client' fired with attributes: {"pluginVersion":"3.29.0"} com.atlassian.jpo:jpo-wr-page-common-shared-scripts.js:27:113724
Uncaught TypeError: o is undefined
o https://play-servicedesk.tmc.tmcaz.com/s/a40d41478136a5e063e6389840def288-CDN/yp3bg0/808001/5111f34c23ad636e596b622e7d4d8222/3.29.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-common-shared-scripts/com.atlassian.jpo:jpo-wr-page-common-shared-scripts.js?locale=en-US:5
build https://play-servicedesk.tmc.tmcaz.com/s/a40d41478136a5e063e6389840def288-CDN/yp3bg0/808001/5111f34c23ad636e596b622e7d4d8222/3.29.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-common-shared-scripts/com.atlassian.jpo:jpo-wr-page-common-shared-scripts.js?locale=en-US:5
buildMessage https://play-servicedesk.tmc.tmcaz.com/s/a40d41478136a5e063e6389840def288-CDN/yp3bg0/808001/5111f34c23ad636e596b622e7d4d8222/3.29.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-dependencies-scripts/com.atlassian.jpo:jpo-wr-page-dependencies-scripts.js?locale=en-US:5
initialize https://play-servicedesk.tmc.tmcaz.com/s/a40d41478136a5e063e6389840def288-CDN/yp3bg0/808001/5111f34c23ad636e596b622e7d4d8222/3.29.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-dependencies-scripts/com.atlassian.jpo:jpo-wr-page-dependencies-scripts.js?locale=en-US:5
Controller https://play-servicedesk.tmc.tmcaz.com/s/a40d41478136a5e063e6389840def288-CDN/yp3bg0/808001/5111f34c23ad636e596b622e7d4d8222/3.29.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-common-libs-only-scripts/com.atlassian.jpo:jpo-wr-page-common-libs-only-scripts.js?locale=en-US:525
e https://play-servicedesk.tmc.tmcaz.com/s/a40d41478136a5e063e6389840def288-CDN/yp3bg0/808001/5111f34c23ad636e596b622e7d4d8222/3.29.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-common-shared-scripts/com.atlassian.jpo:jpo-wr-page-common-shared-scripts.js?locale=en-US:5
e https://play-servicedesk.tmc.tmcaz.com/s/a40d41478136a5e063e6389840def288-CDN/yp3bg0/808001/5111f34c23ad636e596b622e7d4d8222/3.29.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-common-shared-scripts/com.atlassian.jpo:jpo-wr-page-common-shared-scripts.js?locale=en-US:5
p https://play-servicedesk.tmc.tmcaz.com/s/a40d41478136a5e063e6389840def288-CDN/yp3bg0/808001/5111f34c23ad636e596b622e7d4d8222/3.29.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-dependencies-scripts/com.atlassian.jpo:jpo-wr-page-dependencies-scripts.js?locale=en-US:5
callback https://play-servicedesk.tmc.tmcaz.com/s/a40d41478136a5e063e6389840def288-CDN/yp3bg0/808001/5111f34c23ad636e596b622e7d4d8222/3.29.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-dependencies-scripts/com.atlassian.jpo:jpo-wr-page-dependencies-scripts.js?locale=en-US:5
setup https://play-servicedesk.tmc.tmcaz.com/s/a40d41478136a5e063e6389840def288-CDN/yp3bg0/808001/5111f34c23ad636e596b622e7d4d8222/3.29.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-common-shared-scripts/com.atlassian.jpo:jpo-wr-page-common-shared-scripts.js?locale=en-US:27
delay https://play-servicedesk.tmc.tmcaz.com/s/a40d41478136a5e063e6389840def288-CDN/yp3bg0/808001/5111f34c23ad636e596b622e7d4d8222/3.29.0/_/download/batch/com.atlassian.jpo:jpo-wr-page-common-libs-only-scripts/com.atlassian.jpo:jpo-wr-page-common-libs-only-scripts.js?locale=en-US:110
com.atlassian.jpo:jpo-wr-page-common-shared-scripts.js:5:60693
Downloading resources:
css!/s/b43e577e51cd20b20ccedadf41d213b1-CDN/yp3bg0/808001/5111f34c23ad636e596b622e7d4d8222/8.8.1/_/download/batch/com.atlassian.jira.jira-header-plugin:newsletter-signup-tip/com.atlassian.jira.jira-header-plugin:newsletter-signup-tip.css
js!/s/d41d8cd98f00b204e9800998ecf8427e-CDN/yp3bg0/808001/5111f34c23ad636e596b622e7d4d8222/1.4.1/_/download/batch/com.atlassian.plugin.jslibs:underscore-1.8.3/com.atlassian.plugin.jslibs:underscore-1.8.3.js!order
js!/s/df63eee3446e23277fb7d64a9f563d83-CDN/yp3bg0/808001/5111f34c23ad636e596b622e7d4d8222/8.8.1/_/download/batch/com.atlassian.jira.jira-header-plugin:newsletter-signup-tip/com.atlassian.jira.jira-header-plugin:newsletter-signup-tip.js?locale=en-US!order batch.js:119:107
```


Tags: advanced-roadmaps