The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Should work "Fast-track transition an issue" if conditions
1) not role Developers
2) The transition occurs only from a transaction (Waiting For Customer Reply)
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()
// id transit/ (751)
if (actionName == "Waiting For Customer Reply"){
return true
}
but for some reason it doesn't work
Hi
You do not have access to transitionVar variable in a Listener, this variable is only available in postfunction.
Your listener is triggered on "Comment Issue" but you check what the action performed is, that is related to transition (An issue going from a status to another).
You can create a custom event, set this event instead Generic Event in the postfunction of the transition "Customer Expectation" then catch this custom event in your listener instead of Issue Commented
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
👋 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...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.