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.