Exception referring to javascript error after update of JIRA agile

Carlo Hohenbrink October 8, 2014

Hi,

according to @Daniel Leng proposal we'd like to raise the question/issue below:

After we updated JIRA agile to the version 6.6.0 we face lots of javascript errors in all our agile boards only when using firefox (31,32,33a).

We are using latest version of the script runner (tested with 3.0.5 and 3.0.6) on JIRA 6.3.4 

Steps to reproduce

Open up work mode of any JIRA agile board and execute an action (e.g. change status of the issue) in firefox

Error message:

"Exception: TypeError: j is null
Resource: https://jira.xing.hh/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/en_USc4g8e9/6332/47/a6e7ec965e52e68ee9a220d865c55c9b/_/download/contextbatch/js/jira.general/batch.js
Line: 16
Exception: TypeError: j is null
Resource: https://jira.xing.hh/jira/s/d41d8cd98f00b204e9800998ecf8427e-CDN/en_USc4g8e9/6332/47/a6e7ec965e52e68ee9a220d865c55c9b/_/download/contextbatch/js/jira.general/batch.js
Line: 16"

Important

The action is executed although the error message is shown. Thus this issue is not a blocker!

Workaround

We temporarily disabled the script-runner module "Displays messages to the user generated from script workflow functions(userMessageUtil)" 

 

We have the strong assumption that the script runner has any bad crosslinked javascript-handling with the newest agile boards. We do not use any scripted post functions, but according to this description the script runner polls at each screen refresh.

Anyone might help us out? @Jamie Echlin [Adaptavist] ?

 

Cheers

Carlo

2 answers

0 votes
JamieA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 9, 2014

Daniel, thanks for trying to reproduce. Carlo, F12 tools should be able to show you a javascript stacktrace, can you post that? Might be best to create an issue at http://jamieechlin.atlassian.net/browse/GRV.

0 votes
dleng
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 8, 2014

I am actually unsure of how to reproduce the problem. In a test workflow, I added the following script post function: {code} import com.onresolve.scriptrunner.runner.util.UserMessageUtil UserMessageUtil.success("Transitioned!") {code} And then transitioned some issues on the Agile board, but I can't seem to reproduce the error in Firefox at all. (or any browser for that matter) Perhaps I'm missing something but I am unaware of it. Also, Carlo mentioned that he has no postfunction scripts that use the UserMessageUtil.

Suggest an answer

Log in or Sign up to answer