/** * Get the next usable ID value for a given list of descriptors. */ public static int getNextId(final List descriptors) { return getNextId(descriptors, 1); }
newStep.setId(WorkflowUtil.getNextId(getWorkflow().getDescriptor().getSteps())); newStep.getMetaAttributes().put(JiraWorkflow.STEP_STATUS_KEY, getStepStatus());