Hi,
My scenario:
2 transitions which launch the same groovy
I need to know from which one the script has been launched to include a piece of code like this:
If (invoked_from_transition1){
do_1;
else{ do_2;
}
Any idea?
Thanks in advance
Begoña
Community moderators have prevented the ability to post new answers.
The action ID is in the transientVars map which is in the script binding.
def workflow = componentManager.getWorkflowManager().getWorkflow(issue)
def wfd = workflow.getDescriptor()
def action = wfd.getAction(transientVars["actionId"])
def actionName = action.getName()
You can add log events to the code. This might cause a lot of "garbage" in your log file, but I would try it.
Add log.warn("message") or log.debug("message") before each relevant do
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.