Exception: Uncaught SyntaxError: Unexpected token ILLEGAL while using SCRUM board

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Data Center - この記事は、Data Center プラットフォームのアトラシアン製品に適用されます。

このナレッジベース記事は製品の Data Center バージョン用に作成されています。Data Center 固有ではない機能の Data Center ナレッジベースは、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。

*Fisheye および Crucible は除く

問題

Using a SCRUM Board will lead to following exception as below:

 
Please try refreshing the page, or contact your administrator / Atlassian Support if the problem continues
Details
Exception: Uncaught SyntaxError: Unexpected token ILLEGAL
Resource: http://localhost:8080/secure/RapidBoard.jspa?rapidView=1&view=detail&selectedIssue=JAVA-6
Line: 5
Column: 48
Environment
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 Safari/537.36
Stack trace
SyntaxError: Unexpected token ILLEGAL
at eval (native)
 
Or
 
Exception: ReferenceError: moment is not defined
 
Or
 
Exception: TypeError: GH.RapidBoard.BoardHeader is undefined

診断

  • Error encountered in all browser type

原因

  • This is caused by a javascript that is appended to JIRA through fields/announcement banner
  • The javascript might have syntax error or operation that conflicts with JIRA

ソリューション

  • Turn on safe mode in JIRA Administration > Add-ons > Manage Add-ons > Turn on Safe Mode to check if any add-ons that is causing this. Retest.
  • Remove the Javascript by checking at Announcement Banner (g+g > search for announcement banner)
  • Run the following sql in your database to find which fields holds the JS

     SELECT * FROM fieldlayoutitem WHERE lower(description) LIKE '%javascript%';


Last modified on Mar 18, 2025

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.