Hello,
How to delete versions from Script?
Thanks,
Welcome to the Atlassian Community!
What scripting function are you using?
We are using Groovy scripting.
import com.atlassian.jira.component.ComponentAccessor
def projectManager = ComponentAccessor.getProjectManager()def versionManager = ComponentAccessor.getVersionManager()
def project = projectManager.getProjectObjByKey("INT") //Change project key here for the project you want to change
//100p to create version list
for(int i = 170; 1<=220; i++) { //loop from which to which version you want to update variablyString secondstr = "3.1.28.0" +i; //add the fixed value here which won't changeversionManager.createVersion(secondstr,null,null, "",project.id,null)}
This is a script which adds versions. What is the question about deleting them?
We are looking for script to bulk delete a series of project version.
It looks like you're new here. Sign in or register to get started.