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

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 Sign up to answer
Community showcase
Posted Oct 09, 2018 in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

391 views 6 0
Join discussion

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