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

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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,907 views 12 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot