How to mass delete issues in Jira
プラットフォームについて: Cloud のみ - この記事は クラウド プラットフォームのアトラシアン製品に適用されます。
要約
Jira Cloud does not natively offer an SQL query to delete issues directly from the database, as this could potentially corrupt your data.
The below steps assume that you want to permanently remove issues from Jira that are no longer required. We recommend to backup your issues before performing the below operations. See Export data from Jira Cloud
ソリューション
Here are a few ways to remove a large amount of issues from Jira.
Jira UI
This bulk operation allows you to delete up to 1000 issues at a time.
- 必要なフィルターを使用して課題リストを生成します。
- Select ... to the right of the screen > Select Bulk change issues
- Select the issues you'd like to perform the bulk operation on and select Next at the bottom of the list.
- Select Delete Issues and then select Next.
- 可能な場合は、メール通知を送信したいかどうかを決定します。次へを選択します。
- Review your bulk operation, and select Confirm when you are happy with the selections.
REST API
You can build a script that will run the REST API that is mentioned on the Developer API page to delete multiple issues all at once. Here is an example of a curl request using the delete API endpoint.
curl --request DELETE \
--url 'https://your-domain.atlassian.net/rest/api/3/issue/{issueIdOrKey}' \
--user 'email@example.com:<api_token>'
Third-party app
Mass Delete for Jira makes the removal of large numbers of Jira issues easy. Unlike the bulk delete functionality provided by Jira, this app has no limit on the number of issues that can be removed at a time.