ScriptRunner: After Downgrading from 4.1.3. to 3.1.3 Uncaught TypeError: Cannot read property 'query' of undefined

Hi,

after downgrading Scriptrunner add-on from 4.1.3 to 3.1.3 we see an error box in the Backlog view of the Scrum Boards in Jira Agile.

I started JIRA in safe-mode with "Agile" only: no error

Adding Scriptrunner 3.1.3 (or even 3.1.4) lets the error re-appear.

The exception is:

An error occurred
Please try refreshing the page, or contact your administrator / Atlassian Support if the problem continues.
Details
Exception: Uncaught TypeError: Cannot read property 'query' of undefined
Resource: https://jira.oururl.org/s/45f47c045efe28db22f3d60a2297cd25-CDN/en_UK3l2rwm/64027/23/20ae948d805ef5262b9593422c91e493/_/download/contextbatch/js/greenhopper-rapid-non-gadget,gh-rapid,atl.general,jira.project.sidebar,jira.global,jira.general/batch.js?agile_global_admin_condition=true&jag=true&jag_disabled_marketing=true&jaguser=true&isAdmin=true&locale=en-UK&hc-enabled=true
Line: 422
Column: 388
Environment
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36
Stack trace
TypeError: Cannot read property 'query' of undefined
at Object.success (https://jira.oururl.org/s/45f47c045efe28db22f3d60a2297cd25-CDN/en_UK3l2rwm/64027/23/20ae948d805ef5262b9593422c91e493/_/download/contextbatch/js/greenhopper-rapid-non-gadget,gh-rapid,atl.general,jira.project.sidebar,jira.global,jira.general/batch.js?agile_global_admin_condition=true&jag=true&jag_disabled_marketing=true&jaguser=true&isAdmin=true&locale=en-UK&hc-enabled=true:422:388)
at j (https://jira.oururl.org/s/3a7dfdabc7becba7dba3b2ddccc0a106-CDN/en_UK3l2rwm/64027/23/37/_/download/superbatch/js/batch.js?locale=en-UK:40:220)
at Object.o.fireWith [as resolveWith] (https://jira.oururl.org/s/3a7dfdabc7becba7dba3b2ddccc0a106-CDN/en_UK3l2rwm/64027/23/37/_/download/superbatch/js/batch.js?locale=en-UK:42:6)
at c (https://jira.oururl.org/s/3a7dfdabc7becba7dba3b2ddccc0a106-CDN/en_UK3l2rwm/64027/23/37/_/download/superbatch/js/batch.js?locale=en-UK:166:292)
at XMLHttpRequest.b (https://jira.oururl.org/s/3a7dfdabc7becba7dba3b2ddccc0a106-CDN/en_UK3l2rwm/64027/23/37/_/download/superbatch/js/batch.js?locale=en-UK:178:149)

Anyone else had this? 

The downgrade was a manual downgrade as described in the JIRA documentation: 

shutdown JIRA

delete old addon

insert new addon

start JIRA

Did I miss something?

Thanks for any pointers in resolving this.

 

Marco

 

1 answer

1 accepted

1 votes

I haven't seen that issue. What version of JIRA agile is it? 

You can verify by disabling the script runner resources that add js to that page, you can see how here: https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html#_insprint_board_name_sprint_name

 

please use the plugin tag next time, no one follows the tags you used.

great, this fixed the issue! Thanks a lot :)

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

730 views 5 16
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot