public interface

ProjectFieldScreenHelper

com.atlassian.jira.issue.fields.screen.ProjectFieldScreenHelper
Known Indirect Subclasses

Class Overview

An internal helper class for Project Configuration.

Summary

Public Methods
boolean canUserViewFieldScreenForProject(ApplicationUser user, FieldScreen fieldScreen, Project project)
Whether the provided user can view the field screen for the project.
List<Project> getProjectsForFieldScreen(FieldScreen fieldScreen)
Gets the projects using a given FieldScreen.

Public Methods

public boolean canUserViewFieldScreenForProject (ApplicationUser user, FieldScreen fieldScreen, Project project)

Whether the provided user can view the field screen for the project.

Parameters
user the user to check to access for. Must not be null.
fieldScreen the field screen to query view access on. Must not be null.
project the project the field screen should be on. Must not be null.
Returns
  • if the provided user can view the field screen for the project

public List<Project> getProjectsForFieldScreen (FieldScreen fieldScreen)

Gets the projects using a given FieldScreen. A project uses a given FieldScreen if it:

  1. uses a workflow that has the FieldScreen as a transition screen, or
  2. uses a field screen scheme thas has a FieldScreen for one of its issue operations

Only projects for which the requesting user has EDIT_PROJECT_CONFIG permissions are returned.

Parameters
fieldScreen field screen to find associated projects for.
Returns
  • list of projects which use the given field screen. Sorted by COMPARATOR