Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

'Script Runner For Confluence' Upgrade from version 5.0.5 to version 5.4.36.

Tomer Amar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 30, 2018

After upgrading 'Script Runner For Confluence' from version 5.0.5 to version 5.4.36.

I'm getting an error after macro run :"Uncaught SyntaxError: Unexpected end of input" in some of my existing Custom Script Macros.

Same code runs without any Issue on 5.0.5.

Can someone tell me what is the differences (if exist) between this 2 versions?

 

 

1 answer

1 vote
Tomer Amar
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 30, 2018

Found the cause :) . 

Script validation must have changed.

';' as  end of a statement is a must.

In previous version (5.0.5) ,if there's no more code in the block after a line, the ; was technically optional.

in new version 

Comments in Script , if this was valid : 

...

//My Comment Here

var test = 'Test';

...

Now it should be written : 

...

/*My Comment Here*/

var test = 'Test';

...

Adding ';' to each statement and fixing comments to /*..*/ solved the upgrades issues.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events