Date format changes after exporting to Excel from Jira Data Center

お困りですか?

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

コミュニティに質問

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

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

*Fisheye および Crucible は除く

症状

The date format shown in Excel does not reflect the format shown in the Jira application's user interface.

原因

  1. Excel determines the date format based on local settings. If your local machine has a different date format than Jira applications, then the settings will not match each other.
  2. There is also a known bug regarding the date format change even though the setting in Javascript is configured correctly (JRASERVER-67469 - Inconsistency date Export using Date Custom Field with different Language Configured). 

診断

Ensure the end user machine's Regional and Language setting is not other than English.

ソリューション

  1. Change the date format on your local machine to the one used in Jira applications.
  2. Use Google Excel Sheet (Ensure you are using English Language else the issue will persist)
    1. Open Google Excel
    2. Select File > Import > Upload > Upload the CSV file
    3. Once the import is completed, a screen will prompt for more details. Update the Separator type accordingly.
    4. Click on import data and open it
    5. The wrong date data will be imported to Google Excel, we will need to select 2 columns which having the wrong date format.
    6. Select Format > Number > Date Time and all date columns will be formatted accordingly.
    7. Export it as a new Excel file and you can use it as usual in Microsoft Excel without issue now.

ルック アンド フィール ページでは、Jira のユーザー インターフェイス全体で時間や日付を表示する方法をカスタマイズできます。

日付と時刻を指定する際、それらはJava の SimpleDateFormat に基づいている必要があります。

[ルック アンド フィール] ページで編集モードに入っていないときに [日付/時刻の形式] セクションの右端の列に示される例は、さまざまな形式の Jira での表示形式を示しています。

日付/時刻のフォーマットでは相対時間が使用される

課題の日付/時刻フィールドは、絶対日付/時刻形式ではなく、相対日付/時刻形式で表示されます (例: "2013 年 5 月 20 日 12 : 00 PM" ではなく "昨日")。引き続き、フィールドにカーソルを合わせると、絶対日付/時刻を表示できます。

(info) 日付/時間フォーマットは 1 週間後に絶対日付に戻ります。

日付ピッカーのフォーマットの設定


(info) Be aware that these options are different from the Date/Time Formats configuration options on the Look and Feel page, which only customize JIRA's presentation of times and dates to users.

(warning) 日付ピッカーの日付または日付/時刻形式は、1 組のプロパティ (1 つは Java 用、もう 1 つは JavaScript 用) によって定義されます。定義した日付 (または日付/時間) ピッカーが正しく機能するには、2 つのプロパティが一致している必要があります。

以下にいくつか示すのは、米国ベースの日付設定の例です。

日付の表示形式

jira.date.picker.java.format プロパティの値

jira.date.picker.javascript.format プロパティの値

コメント
2010-10-01yyyy-MM-dd%Y-%m-%dISO 8601 形式

Oct/1/10

MMM/d/yy

%b/%e/%y


10/01/10

MM/dd/yy

%m/%d/%y


2010 年 10 月 1 日

MMM d, yyyy

%b %e, %Y


10/01/2010

MM/dd/yyyy

%m/%d/%Y


以下に、いくつかの日付/時間設定を示します。

選択した日付

jira.date.time.picker.java.format プロパティの値

jira.date.time.picker.javascript.format プロパティの値

コメント
2010-10-15 08:50yyyy-MM-dd HH:mm%Y-%m-%d %H:%MISO 8601 形式

15/Oct/10 8:50 AM

dd/MMM/yy h:mm a

%d/%b/%y %l:%M %p


10/15/10 08:50 AM

MM/dd/yy hh:mm a

%m/%d/%y %I:%M %p



最終更新日 2025 年 4 月 21 日

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

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