Hi All,
is there a way to delete all components and versions of a project all at once? We have 100+ of each so deleting one by one would be cumbersome. By a jelly script?
Thanks,
Rumi
Hi Rumceisz,
You may delete all your project components by using a script along with JIRA Command Line Interface plugin, from Bob Swift.
The link below provides some examples on how to perform such operations with his plugin:
https://bobswift.atlassian.net/wiki/display/JCLI/Examples
Cheers,
Danilo
Hi Danilo,
thanks for your suggest.
Actually we want to delete all issues in a project and then import the project again from an xml. Why we don't want to delete the project either? Because there a plenty of custom fields, settings on the projects which would be cumbersome to set.
So, what if we kepp the components and versions and delete the isues and import again? Can we do the import?
Thanks again!
Rumi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you want to delete all versions of a project you can user this script in the Script Runner console:
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.project.version.VersionManager
import com.atlassian.jira.project.version.Version
VersionManager versionManager = ComponentAccessor.getVersionManager()
def project = ComponentAccessor.projectManager.getProjectObjByKey("your_PROJECT_KEY");
versionManager.deleteAndRemoveFromIssues(project.getId())
ComponentAccessor.projectComponentManager.deleteAllComponents(project.getId())
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.