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

Why Listeners does not work?

Hi! I am writing a condition but, for some reason, the code does not work ..

Task : 
When using the "Customer expectation" button, the ticket is transferred to the status "waiting".

It is necessary to make it so that when a user writes a comment in a ticket, the ticket changes its status to "open".

If a user with the "developers" role in the "1F" project writes to the ticket, then we leave the ticket in the waiting status.


My code :

import com.atlassian.jira.component.ComponentAccessor


def workflow = ComponentAccessor.getWorkflowManager().getWorkflow(issue)

def wfd = workflow.getDescriptor()

def actionName = wfd.getAction(transientVars["actionId"]).getName()

if (actionName == "Customer expectation"){


фцыва (1).pngВВ (1).pngЙЦВЙЦ (1).png

0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,993 views 37 49
Read article

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