Hi,
I've done a script that allow me to replace an issue type by an other one in all my Jira.
It works, but it breaks all the filter of the previous type.
Is there a way to change the content of all filter.
Like:
def filterMan = ComponentAccessor.filterManager()
def allFilters = filterMan.getAllFilters()
def jqlRequest
allFilters.each{
if ("issue Type" in it.getJqlRequest()){
jqlRequest = it.jqlRequest()
jqlRequest.replace("issue Type", "new issue Type")
it.setJqlRequest(jqlRequest)
}
}
My main issue consist in getting all the jql request of all the filter.
Regards,
Laurent