How to rename SLAs

プラットフォームについて: Data Center のみ。 - この記事は、 Data Center platform.

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

*Fisheye および Crucible は除く

要約

Currently, there is no way to rename SLAs in Service Management. However, this can be achieved via direct database modification.

This example explains how to rename an SLA from SLA1 to SLA2 in a Service Management with project key SD.

ソリューション

手順

Direct database modification is not supported. Please make sure to back up your database or create an XML backup in Jira before attempting this workaround.

  1. Jira を停止します。

  2. Identify the ID of the SLA custom field (notice the use of SLA1 as the name of the SLA custom field):

    select ID, cfname from customfield where customfieldtypekey like '%sla%' and cfname = 'SLA1';

    By default, this custom field is Locked and has the same name as the SLA.

  3. Identify the ID of the Service Management (notice the use of SD as the project key of the Service Management):

    select ID from ao_54307e_servicedesk where project_id = (select ID from project where pkey = 'SD');

    As the same SLA can be used in multiple service projects, it's good to make sure that you only change its name where necessary.

  4. Identify the SLA itself:

    select ID, name from ao_54307e_timemetric where custom_field_id = <ID_from_query_1> and service_desk_id = <ID_from_query_2>;

    It should have the same name as the SLA custom field, which is SLA1 in this case.

  5. To ensure the changes are reflected on (Jira Administration > Issues > Custom Fields) and JQL filters.

    update customfield set cfname = 'SLA2' where customfieldtypekey like '%sla%' and cfname = 'SLA1';
  6. Once you're sure this is the SLA you'd like to rename, rename it (notice the use of SLA2 as the new name):

    update ao_54307e_timemetric set name = 'SLA2' where ID = <ID_from_query_3>;

  7. Start Jira upon executing the queries.

There is a feature request for this functionality to be native to Service Management at:

更新日時: 2025 年 4 月 7 日

さらにヘルプが必要ですか?

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