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
!isUserMemberOfRole('Developers')
def workflow = ComponentAccessor.getWorkflowManager().getWorkflow(issue)
def wfd = workflow.getDescriptor()
def actionName = wfd.getAction(transientVars["actionId"]).getName()
if (actionName == "Customer expectation"){
true
}
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.