Auto Transition based on commenters

I'm asking about issue status auto transition based on commenters

i.e. if the assignee replied to issue "or one from assignees group" the issue status should be waiting for customer response


3 answers


You can use script runner's "Fast-track transition an issue" listener by selecting Issue Commented Event and writing Additional Conditions

You can find further info on

0 votes
Bryan Trummer Community Champion Apr 15, 2014

So you are wanting the issue to move to waiting for customer response depending on who the commenter is?

import com.opensymphony.workflow.WorkflowContext

import com.atlassian.jira.issue.Issue

import com.atlassian.jira.ComponentManager

import com.atlassian.jira.event.issue.AbstractIssueEventListener

import com.atlassian.jira.event.issue.IssueEvent

import org.apache.log4j.Logger

import static org.apache.log4j.Level.DEBUG

import com.atlassian.jira.bc.issue.IssueService.UpdateValidationResult

import com.atlassian.jira.bc.issue.IssueService.IssueResult

import com.atlassian.jira.bc.issue.IssueService

import com.atlassian.jira.bc.issue.IssueService.TransitionValidationResult

import com.atlassian.jira.issue.IssueInputParametersImpl

import com.atlassian.jira.issue.IssueInputParameters

import com.atlassian.jira.util.ErrorCollection

import com.atlassian.jira.issue.index.IssueIndexManager

class invoketransition extends AbstractIssueEventListener {

Logger log = Logger.getLogger(invoketransition.class)


void issueUpdated (IssueEvent event) {

//add your code to get the user who has commentted, assignee and all usernames from assignment group and add the condition

Issue issue = event.getIssue();

def issuestatus = issue.getStatusObject().getName().toUpperCase()

actionid = 123 //action id for transition to reach to status waiting for customer

ComponentManager componentManager = ComponentManager.getInstance()

IssueService issueService = ComponentManager.getInstance().getIssueService()

IssueInputParameters issueInputParameters = issueService.newIssueInputParameters()

TransitionValidationResult validationResult = issueService.validateTransition(user,, actionid, issueInputParameters)

issueService.transition(user, validationResult)


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,284 views 5 10
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you