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


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.
Exception: Uncaught TypeError: Cannot read property 'query' of undefined
Line: 422
Column: 388
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 (,gh-rapid,atl.general,jira.project.sidebar,,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 (
at Object.o.fireWith [as resolveWith] (
at c (
at XMLHttpRequest.b (

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.




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:


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