You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
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.