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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.