Bulk project category change in Jira

How to change project categories in bulk in Jira?

This is possible, but you need to have a Scriptrunner. And it’s really simple, you just need to go to the Script Console, and paste this code:

import com.atlassian.jira.component.ComponentAccessor
import com.onresolve.scriptrunner.parameters.annotation.ShortTextInput

@ShortTextInput(description = "List of project Keys separated by commas", label = "Project Key List")
String projectListString

@ShortTextInput(description = '', label = "New Category")
String categoryName

def projectManager = ComponentAccessor.projectManager
def projectList = projectListString.tokenize(' ,').findResults { pkey ->
def newCat = projectManager.getProjectCategoryObjectByName(categoryName)
if (!newCat) {
   return "There is no category by the name $categoryName. Manually assign that category to one project from the project settings first, then come back here to bulk-update more projects."
projectList.each {
   projectManager.setProjectCategory(it, newCat)

It will gives you a simple tool, where you can paste list of projects and new category for those projects.

And that’s all 🙂 Really easy copy-paste and it’s done.

New, lower prices of Atlassian trainings

Now you can learn at Atlassian University for less. They changed the price of their basic trainings, and now they are free or starting from $39.
The whole catalog of free and cheap courses is here: https://university.atlassian.com/student/catalog/list?category_ids=21723-on-demand

If you do not have any experience with Jira or Jira Service Management I recommend starting with free courses:

If you will work with Confluence:

Those are basics, but it’s really hard to work with Jira/Confluence without them.

Powerscript for Jira – how to block editing a field or fields for a given role or roles.

Power Scriptsâ„¢ – Jira script automation
JIRA PowerScript Sctipts Plugin is a very useful plugin if you want to automate tasks while working with Jira projects to save time on repetitive tasks. The most important features are the ability to automate repetitive tasks, scripts added to the workflow, transit, and event listener.

It can be found on atlassian marketplace under this link. Unfortunately, it is not free, but the price is very affordable.

Script code

Read more Powerscript for Jira – how to block editing a field or fields for a given role or roles.

Jira and Docker – on the fly

If you need to quickly get Jira running on an external database (postgres/mysql) and you don’t want to mess with disk cleanup later, use docker.

To access the jira_home directory instead of using a volume mount a specific directory from the disk.

How to do it? Very simple – here are the commands.

Read more Jira and Docker – on the fly