How to list all of the calendars your Confluence users had subscribed to
プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム。
この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。
*Fisheye および Crucible は除く
要約
If you are an administrator of Confluence and you'd like to list all of the Calendars your Confluence users had subscribed to in your Confluence instance, you may then use the following query.
ソリューション
To list all of the Calendars your users had subscribed to in your Confluence instance, together with the subscription date:
⚠️ The following query was tested on PostgreSQL and MySQL
PostgreSQL
SELECT um."username" AS "Username", tc."NAME" AS "Calendar Name", to_timestamp(CAST(tc."CREATED" AS bigint)/1000) AS "Subscription Date" FROM "AO_950DC3_TC_SUBCALS" tc
LEFT JOIN "user_mapping" um ON um."user_key" = tc."CREATOR"
WHERE tc."CREATOR" = um."user_key"
AND "PARENT_ID" IS NULL
AND "SUBSCRIPTION_ID" IS NOT NULL;MySQL
SELECT um.username AS Username, tc.NAME AS CalendarName,
FROM_UNIXTIME(tc.CREATED/1000) AS SubscriptionDate
FROM AO_950DC3_TC_SUBCALS tc
LEFT JOIN user_mapping um ON um.user_key = tc.CREATOR
WHERE tc.CREATOR = um.user_key
AND PARENT_ID IS null
AND SUBSCRIPTION_ID IS NOT NULL;ℹ️ The "SUBSCRIPTION_ID" IS NOT NULL will filter out the Creator of the calendar. If you wish to get the result together with the Creator of the calendar, you can remove the line.
この内容はお役に立ちましたか?