Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Workflow transition assignee by project admins

I found this functionality extremely anticipated for my teams. I hope it helps you too :)

Firstly: what was the issue?

1) Needed flexibility with setting assignees when issues are moved to following statuses.

2) Assignees should be project specific.

3) Project administrators should be able to change the assignees.

What you need?

Two Jira plugins: ScriptRunner and Enhenced Project Properties

I do recommend to load following script to Jira server as it will be commonly used:


import org.apache.log4j.Logger
import org.apache.log4j.Level
Logger log = Logger.getLogger("workflowTransitionAssignee.groovy")

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.user.ApplicationUser

String transientName = transientVars.getAt("descriptor").getAction(transientVars['actionId']).name
String propertyKey = "workflow.transition."+transientName+".assignee"

def pluginAccessor = ComponentAccessor.getPluginAccessor()
def projectPropertiesManager = null
projectPropertiesManager = ComponentAccessor.getOSGiComponentInstanceOfType(pluginAccessor
}catch(Exception e){
log.error("Enhanced Project Properties plugin ( not found in the instance")

def propertyComponent = projectPropertiesManager.getProjectPropertyByKey(issue.projectObject, propertyKey)
if(propertyComponent == null){
log.debug(propertyKey + " property key not found")
}else if(propertyComponent.propertyValue == null || propertyComponent.propertyValue.trim() == ""){"Value for property key "+propertyKey+" is null or empty")
log.debug("Property for " + propertyKey + " : " + propertyComponent.propertyValue)

ApplicationUser user = ComponentAccessor.userManager.getUserByName(propertyComponent.propertyValue)
if(user == null){
log.warn("User " + propertyComponent.propertyValue + " not found in the system")

issue.assignee = user


Add the script to each transition where you want to have the functionality available. Remember the transition name!

Set project properties like:

workflow.transition.Create.assignee = dave
workflow.transition.In Progres.assignee = hubert

You can also modify Project Permissions scheme so Administrators can manage Project Properties and it's visible to Developers.


Project administrators have to use user names.



Log in or Sign up to comment

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you