Hey!
I have 300+ boards in my project and i want to change the just the boards that have the word "Epic" in it to "Feature"
this is the code i have now :
import com.atlassian.jira.component.ComponentAccessorimport com.atlassian.greenhopper.service.rapid.view.RapidViewServiceImplimport com.atlassian.greenhopper.manager.rapidview.RapidViewManagerImplimport com.atlassian.greenhopper.service.rapid.view.RapidViewServiceimport com.atlassian.greenhopper.web.rapid.view.RapidViewHelperimport com.onresolve.scriptrunner.runner.customisers.JiraAgileBean@JiraAgileBeanRapidViewService rapidViewService@JiraAgileBeanRapidViewHelper rapidViewHelperdef userManager = ComponentAccessor.getUserManager()def users = userManager.getAllApplicationUsers()users.each{ u ->def allViews = rapidViewService.getRapidViews(u).value //linked listdef rapidView = allViews.each{ it->if(it.getName().contains("Epic")){it.getName().replace("Epic", "Feature")}}}return 'finished'
import com.atlassian.jira.component.ComponentAccessorimport com.atlassian.greenhopper.service.rapid.view.RapidViewServiceImplimport com.atlassian.greenhopper.manager.rapidview.RapidViewManagerImplimport com.atlassian.greenhopper.service.rapid.view.RapidViewServiceimport com.atlassian.greenhopper.web.rapid.view.RapidViewHelperimport com.onresolve.scriptrunner.runner.customisers.JiraAgileBean
@JiraAgileBeanRapidViewService rapidViewService
@JiraAgileBeanRapidViewHelper rapidViewHelper
def userManager = ComponentAccessor.getUserManager()
def users = userManager.getAllApplicationUsers()users.each{ u ->def allViews = rapidViewService.getRapidViews(u).value //linked listdef rapidView = allViews.each{ it->if(it.getName().contains("Epic")){it.getName().replace("Epic", "Feature")}}}return 'finished'
It looks like you're new here. Sign in or register to get started.