Hi there, I'd like to modify this script to create a board, but instead of tying it to a project, use a saved JQL filter. Any help ? Thanks!
import com.atlassian.greenhopper.web.rapid.view.RapidViewHelper
import com.atlassian.jira.component.ComponentAccessor
import com.onresolve.scriptrunner.runner.customisers.JiraAgileBean
import com.onresolve.scriptrunner.runner.customisers.WithPlugin
//Create Board
@WithPlugin('com.pyxis.greenhopper.jira')
@JiraAgileBean
RapidViewHelper rapidViewHelper
def currentUser = ComponentAccessor.jiraAuthenticationContext.loggedInUser
def projectManager = ComponentAccessor.projectManager
def projectIds = [projectManager.getProjectObjByKey("PTDEMO").id as String]
def outcome = rapidViewHelper.createRapidViewForPreset(currentUser, "Testing Board Create", projectIds as Set, "kanban")
log.warn outcome
if (!outcome.valid) {
log.warn "Failed to create board: ${outcome.errors}"
}
Hi Julia,
Replace the createRapidViewWithPreset with createRapidViewWithFilter (user, name, filter id, kanban/scrum)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.