Updating JIRA Date/Time formats externally
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Server* 製品のサポートは 2024 年 2 月 15 日をもって終了します。Server 製品を利用している場合は、Atlassian Server のサポート終了のお知らせページにて移行オプションをご確認ください。
*Fisheye および Crucible は除く
データベースの変更を行う場合は必ず事前にバックアップを取得してください。可能な場合は、まずステージング サーバーで SQL コマンドの変更、挿入、更新、または削除を行うようにします。
問題
At times when the administrators wish to edit the date/time format externally - not via Administration >> System >> Look and feel
- they can do so by using REST API or direct modification to the database.
ソリューション
REST API
Send a PUT
request to /rest/api/2/application-properties/\{id\
}. For example:
curl -k -D- -u username:password -X PUT --data '{"value" : "HH:mm"}' -H "Content-Type: application/json" <BaseURL>/rest/api/2/application-properties/jira.lf.date.time
This will modify the Time Format to HH:mm. The default value is h:mm a
Database query
The following query will return the current date/time formats.
select pe.entity_name, pe.property_key, ps.propertyvalue from propertyentry pe, propertystring ps where pe.id = ps.id and pe.property_key like '%.date.%'
Edit the database accordingly and restart JIRA.
データベースの変更を行う場合は必ず事前にバックアップを取得してください。可能な場合は、まずステージング サーバーで SQL コマンドの変更、挿入、更新、または削除を行うようにします。