グローバル コンテキストを持つカスタム フィールド
Contexts of a field are combinations of issue types and projects where that field is available. When configuring contexts for your custom field, you can choose between two options:
Set a project-specific context — limit the field’s usage only to some chosen issue types and projects.
Set a global context — make the field available in every project that exists on your instance. This means that any newly created project will be automatically added to the field’s global context.
We recommend limiting the availability of a custom field to the projects that will actually use it. Large numbers of custom fields with global contexts have a significant impact on system performance. Learn how to configure custom field contexts
Optimizing fields with global contexts
Custom field optimization is available for Jira Software Data Center and Jira Service Management Data Center.
You can use the Custom fields optimizer to scan all existing custom fields and highlight those whose configuration can be optimized.
The optimizer creates a list of custom fields whose configuration is not optimal and sorts them based on the performance impact they have on your Jira instance. Note that the list of custom fields will not include those created by Jira Software, Jira Service Management or Portfolio for Jira.
To be optimized, a custom field must have a global context and be used in several projects only. A good practice is for the field to be used in fewer than 10 projects. Otherwise, it’s considered an actual global custom field, and you shouldn't change its configuration.
カスタム フィールドの一覧は、以下の例のように表示されます。
- カスタム フィールドの名前
- 使用プロジェクト: 現在このカスタム フィールドを使用しているプロジェクトが表示されます。
- アクション: 最適な設定に変更するには、[コンテキストの変更] を選択します。後から [変更を表示] を選択してカスタム フィールドの設定ページを表示し、必要な変更を行うことができます。
Changing the context of custom fields
The global context was the reason why your custom fields were highlighted after you scanned them with the Custom fields optimizer. To improve the configuration of all highlighted fields, change the context to project-specific. After doing so, your custom fields will be applied only to projects that currently use and need them.
To change the context, select Change context next to each custom field you want to optimize. The field’s context will be automatically updated and will include only those projects that are currently using the field.
べスト プラクティス
変更をまとめて適用したり、ピーク時間を避けて適用します。ユーザーが特定のカスタム フィールドを使用している課題を開く際にはキャッシュを再作成する必要があります。一括で行う場合、複数のカスタム フィールドのキャッシュが一度に再作成されます。
変更を加えると、以下のアクションが実行されます。
- 指定されたカスタム フィールドを使用するすべてのプロジェクトが特定されます。
We'll change the context from global to project-specific and apply the custom field only to relevant projects (by adding these projects to the project-specific context)
値を削除したり、カスタム フィールド自体を削除するわけではないため、データ損失のリスクはありません。このカスタム フィールドを使用しているプロジェクトは、引き続き同様に使用できます。
Validating changes after field optimization
After you optimize the field, select View change to see its context.
必要に応じて、コンテキストに追加されたプロジェクトの一覧を確認したり、新しいプロジェクトを追加したり、コンテキストをグローバルに戻したりすることができます。
If you change the context to project-specific, the only thing you have to keep in mind is to add any future projects to the list. Jira projects won't be able to use the custom field until they belong to its new context. For more information about editing contexts and managing associated projects, see Configuring custom fields.