You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi ,
I have a Project by the name of MBFF and it had 789 defects in it. I have archived all the 789 defects.
Is there a way to bulk restore/unarchive them and also can I migrate the issue type of these issues from Defect to Bug ?
If I download a CSV (All fields) export of archived issues (Defects) , then bulk upload it..
Will it be uploaded as a new issues ?
Can it be uploaded as Bug?
I faced a similar situation and wrote a script for this that can be executed in the console. I know that this post is a few months old, but maybe it can help others.
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.archiving.ArchivedIssueService
def um = ComponentAccessor.userManager
def archivedIssueService = ComponentAccessor.getComponent(ArchivedIssueService)
def techUser = um.getUserByName("user") // replace user with a user ID that has the required permissions
def issues = ["key-1", "key-2"] // replace with all issue keys that need to be restored/unarchived
for (item in issues) {
def validationArchive = archivedIssueService.validateRestoreIssue(techUser, item, false)
if (validationArchive.valid) {
archivedIssueService.restoreIssue(validationArchive)
}
}
Hello @Harshit Grover
This post indicates there is not a Bulk Restore option, but that you can use the JIRA REST API to restore multiple issues at once.
(credit to @Mohamed Benziane )
I believe the migration to a different issue type will need to be a separate step.
I don't believe you can use the CSV import process to restore the issues nor to change the Issue Type for an issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Take a look at this documentation https://confluence.atlassian.com/adminjiraserver/archiving-an-issue-968669980.html#Archivinganissue-Restoringanissue
Let me know if that helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.