Class WorkflowStatusesValidator

java.lang.Object
com.atlassian.jira.workflow.edit.WorkflowStatusesValidator

public class WorkflowStatusesValidator extends Object
  • Constructor Details

  • Method Details

    • validateStatusDelete

      public ServiceResult validateStatusDelete(ApplicationUser user, @NotNull @NotNull JiraWorkflow mutableWorkflow, String statusId)
      Validates if status can be deleted from workflow by user. Performed checks: - Workflow is not default jira workflow - user has edit permissions to workflow - status is present in workflow - deleted status is not initial status - no issues are currently assigned to given status in workflow.
      Parameters:
      user -
      mutableWorkflow -
      statusId -
      Returns:
    • validateStatusDeleteWhenOverwriteWorkflow

      public ServiceResult validateStatusDeleteWhenOverwriteWorkflow(ApplicationUser user, @NotNull @NotNull JiraWorkflow liveWorkflow, String statusId)