Searching for Projects by name does not work if Project Lead is not defined in Jira

お困りですか?

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

コミュニティに質問

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

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

*Fisheye および Crucible は除く

問題

Searching for Projects by name does not work if no Project Lead is defined on a Project.


環境

Jira Data Center

診断

  • Look through the JIRA "All Projects" from ProjectsView All Projects menu.
    • You may notice errors in your browser such as:

      • TypeError: item.lead is null
      • TypeError: Cannot read property 'toLowerCase' of null.
  • Try running the following query to identify projects without Project Leads: 

    SELECT * FROM project WHERE lead NOT IN (SELECT user_name FROM cwd_user WHERE active = 1);
    

原因

The JavaScript is failing because there is a null entry being returned in the Project Search. Jira Requires a Project lead to be set.

This can be caused by deleting users. We don't recommend deleting Users. Deactivating them is the recommended approach and deactivated users will not count towards your license.
See Deleting Users for more information on this. Often JIRA Administrators will deactivate a user, and rename the deactivated user to something that indicates they have left the organisation, for example: John Smith (Deactivated) 

Also note: Jira will also fail to return search results as if the Project Lead comes from a Disabled Directory: JRASERVER-43888 - Project Search does not work if a Project has a Project Lead in a disabled directory has further details of this behaviour.

ソリューション

To add a project lead to a project, complete the following procedure:

  1. Log in as a System Administrator.
  2. Locate the Projects that do not have Project leads defined No Project Lead specified.
  3. Goto: Administration > Projects.
  4. Locate Projects that do not have project leads defined.
  5. Open the Project.
  6. Select the Roles link.
  7. Set the Project Lead to a known user.
  8. Searching for the project should now work as expected.


Last modified on Mar 7, 2025

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

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