You can now vote for scripts to help people know if they're useful or not. Login or create an account to vote!

1

Create New Boards with the ScriptRunner Console

Overview

This script creates boards for each Jira project for which you are the project manager. You can specify whether you would like to create Scrum or Kanban boards for your projects.

Example

As a Jira project manager, I want to create a board for each of my projects without having to switch projects each time. Using this script, I can choose between Scrum or Kanban boards and create them on each of my projects in one go.

Requirements

  • Jira Jira (8.5 - 8.22)
  • ScriptRunner for Jira ScriptRunner for Jira (6.48.1)
    
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 @WithPlugin('com.pyxis.greenhopper.jira') @JiraAgileBean RapidViewHelper rapidViewHelper //Specify the Project Key final def projectKey = '' //Specify the Board Name final def boardName = '' //Specify the Board Type e.g. scrum or kanban final def boardType = '' def currentUser = ComponentAccessor.jiraAuthenticationContext.loggedInUser def projectManager = ComponentAccessor.projectManager def projectIds = [projectManager.getProjectObjByKey(projectKey).id as String] def outcome = rapidViewHelper.createRapidViewForPreset(currentUser, boardName, projectIds as Set, boardType) log.debug outcome if (!outcome.valid) { log.warn "Failed to create board: ${outcome.errors}" }
Discovered an issue? Report it here

Suggested for you