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

お困りですか?

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

コミュニティに質問

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

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 は除く

問題

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

 

診断

Diagnostic Steps

  • 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: JRA-43888 - Getting issue details... STATUS 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 specificed.
  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.

最終更新日: 2016 年 2 月 26 日

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

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