Hey i want to get the next status from an issue workflow action.
I dont want to process the status.
But i have no idea how to solve that.
My approach would be like this:
WorkflowManager workflowManager = ComponentAccessor.getWorkflowManager();
List<Status> statuses = workflowManager.getWorkflow(issue).getLinkedStatusObjects();
List<String> allActionNames = new ArrayList<>();
for (Status status : statuses) {
StepDescriptor currentStep = workflowManager.getWorkflow(issue).getLinkedStep(status);
List<ActionDescriptor> actions = currentStep.getActions();
for (ActionDescriptor actionDescriptor : actions) {
allActionNames.add(actionDescriptor.getName());
}
}
I need something like this actionDescriptior.getNextStatusObject().
Or is there any other approach?
Hello,
Are you looking for
workflowManager.getNextStatusIdForAction(Issue issue, int actionId)
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.