How to get assigned tasks and created tasks of user from database
プラットフォームについて: 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 は除く
要約
For users, they can check the list of task assigned or created by themselves from User Profile > Task page. However, admin will not be able check what is all the task assigned or created by a specific user. The purpose of this KB is to get all the task assigned to specific user or task that created by specific user from the database.
ソリューション
To get a list of task assigned to a specific user, admin can run the following query in the database.
PostgreSQL
Postgres
select * from "AO_BAF3AA_AOINLINE_TASK" task JOIN USER_MAPPING um ON task."ASSIGNEE_USER_KEY" = um.user_key where um.lower_username = '<lower_username>';MySQL
MySQL
select * from AO_BAF3AA_AOINLINE_TASK task INNER JOIN user_mapping um where task.ASSIGNEE_USER_KEY = um.user_key and um.lower_username ='<lower_username>';ℹ️ Replace the <lower_username> to username of user that you trying to check.
To get a list of task created by specific user, admin can run the following query in the database:
PostgreSQL
Postgres
select * from "AO_BAF3AA_AOINLINE_TASK" task JOIN USER_MAPPING um ON task."CREATOR_USER_KEY" = um.user_key where um.lower_username = '<lower_username>';MySQL
MySQL
select * from AO_BAF3AA_AOINLINE_TASK task INNER JOIN user_mapping um where task.CREATOR_USER_KEY =um.user_key and um.lower_username ='<lower_username>';ℹ️ Replace the <lower_username> to username of user that you trying to check.
この内容はお役に立ちましたか?