My code is as below
WorkflowManager workflowManager = ComponentAccessor.getWorkflowManager();
JiraWorkflow workflow = workflowManager.getWorkflow(issue);
String workflowName=workflow.getName();
log.debug("workflow name" +workflowName)
def wfd = workflow.getDescriptor()
def actionName = wfd.getAction(transientVars["actionId"] as int).getName()
log.debug("Current action name: $actionName")
I am getting error as below
groovy.lang.MissingPropertyException: No such property: transientVars for class:
You are looking to get possible transitions available for the issue?
WorkflowManager workflowManager = ComponentAccessor.getWorkflowManager();
JiraWorkflow workflow = workflowManager.getWorkflow(issue);
workflow.getLinkedStep(issue.getStatus()).getActions();
Thanks for your suggestion.
This is returning an Array, Can you help me in extracting the individual status from this array.
I am trying as below but it is throwing an exception
List oActions = oStep.getActions().iterator();
log.debug(oActions)
int actionID=0
while(oActions.hasNext())
{
log.debug("inside while")
action=(ActionDescriptor)oActions.next()
log.debug(action.getName())
if(action.getName()=="Auto-create Release")
actionId=action.getId()
log.debug("action id" +actionId)
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Never mind I got my solution.
Thanks for your help
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.