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

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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 .

1 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

(Auto-migrated image: description temporarily unavailable)

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

The following appears in the atlassian-jira.log

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 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 :

1 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:

1 Exception: Uncaught SyntaxError: missing ) after argument list

Clearing the javascript fixes the problem.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.