Clicking edit in Kanban board throws Exception: Uncaught SyntaxError: missing ) after argument list

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

In any Kanban board, and in any project, when selecting non closed issue, and from right pane trying to use (...) icon, and option Edit, error is displayed . 

An exception has occurred in http://xxx.xx.xx.xx:xxxx/XXX-XXXXX/secure/RapidBoard.jspa?rapidView=19&view=detail&selectedIssue=PNPS-5 at 6:1 --- Uncaught SyntaxError: missing ) after argument list


After closing the error dialog, the issue can be edited without any problem

The following appears in the atlassian-jira.log

An error occurredHide…(2)
Please try refreshing the page, or contact your administrator / Atlassian Support if the problem continues.
Details
Exception: Uncaught TypeError: (intermediate value)(intermediate value)(intermediate value)(intermediate value)(intermediate value)(intermediate value)(...) is not a function
Resource: http://172.28.12.35:8838/GHS-30138/s/e0fea405dfaf51b75e050dcc9fb79d91-T/en_US-clvue5/6346/5/8e01c206ec75dc0abc823b95d725fcd4/_/download/contextbatch/js/greenhopper-rapid-non-gadget,atl.general,gh-rapid,jira.project.sidebar,jira.global,jira.general/batch.js?locale=en-US&jag=true&agile_global_admin_condition=true&jaguser=true&jpo.create-dialog=true
Line: 141963
Column: 2740
Exception: Uncaught SyntaxError: missing ) after argument list
Resource: http://172.28.12.35:8838/GHS-30138/secure/RapidBoard.jspa?rapidView=19&view=detail&selectedIssue=PNPS-5
Line: 6
Column: 1
Environment
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.36
Stack trace
TypeError: (intermediate value)(intermediate value)(intermediate value)(intermediate value)(intermediate value)(intermediate value)(...) is not a function
at http://172.28.12.35:8838/GHS-30138/s/e0fea405dfaf51b75e050dcc9fb79d91-T/en_US-clvue5/6346/5/8e01c206ec75dc0abc823b95d725fcd4/_/download/contextbatch/js/greenhopper-rapid-non-gadget,atl.general,gh-rapid,jira.project.sidebar,jira.global,jira.general/batch.js?locale=en-US&jag=true&agile_global_admin_condition=true&jaguser=true&jpo.create-dialog=true:141963:2740

Cause

There is a script on one of the system fields or custom field which is not correctly structured. 

Resolution

Find for custom field that have scripts using this SQL query :

select description from fieldlayoutitem where description like '%<script%' OR description like '%<SCRIPT%';

In this example, the script was coming from the Summary field's field configuration description in the Default Field Configuration (fieldlayout ID -> 10000). It appears this script is missing one closing bracket ')'. And is causing the javascript error:  

Exception: Uncaught SyntaxError: missing ) after argument list

Clearing the javascript fixes the problem. 

 

 

Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.