操作の関連付けが重複しているため、Jira で画面を表示できない

お困りですか?

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

コミュニティに質問


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

Platform Notice: Server, Data Center, and Cloud By Request - This article was written for the Atlassian server and data center platforms but may also be useful for Atlassian Cloud customers. If completing instructions in this article would help you, please contact Atlassian Support and mention it.

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.

*Fisheye および Crucible は除く


問題

課題の作成時にユーザーは 500 内部サーバーを取得し、Screens 管理者画面を表示すると空白になります。

atlassian-jira.log に以下が表示されます。

Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: Duplicate key com.atlassian.jira.issue.fields.screen.FieldScreenSchemeItemImpl@83d203ad

診断

次のクエリを実行して、重複した操作の関連付けを見つけます。




select fssi.id, fssi.operation, fssi.fieldscreen, fs.name as "Screen Name", fssi.fieldscreenscheme as "Screen Scheme", fss.name from fieldscreenschemeitem fssi 
join fieldscreenscheme fss on fssi.fieldscreenscheme = fss.id join fieldscreen fs on fs.id = fssi.fieldscreen 
where fssi.fieldscreenscheme in (select fieldscreenscheme from fieldscreenschemeitem group by fieldscreenscheme, operation having count(operation) > 1) and operation in (select operation from fieldscreenschemeitem group by fieldscreenscheme, operation having count(operation) > 1)


原因


重複した操作が同じ画面に関連付けられています。

回避策

重複する行をすべて削除します。各画面スキーム ID に指定できる操作 ID は 1 つのみです。この例では、同じ画面スキームに重複した操作 ID が存在しています。

ID操作フィールドスクリーン画面名画面スキーム名前
101100PK: 編集/表示1010PK: 画面スキーム
201200PK: 画面の編集1010PK: 画面スキーム
  • これを修正するには、一番大きい ID を削除します

    delete from fieldscreenschemeitem where ID = 20


    データベースの変更を行う場合は必ず事前にバックアップを取得してください。可能な場合は、まずステージング サーバーで SQL コマンドの変更、挿入、更新、または削除を行うようにします。


最終更新日 2021 年 5 月 20 日

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

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