Class IssueFields

java.lang.Object
com.atlassian.jira.projectconfig.fields.IssueFields

@Component public class IssueFields extends Object
A utility class for adding
Since:
v6.1
  • Constructor Details

  • Method Details

    • addFieldToIssueScreens

      public void addFieldToIssueScreens(Field field, Issue issue)
    • getAffectedProjects

      public Iterable<Project> getAffectedProjects(Issue issue)
      Returns the list of projects that will be affected by adding a field to a screen.
      Parameters:
      issue - the issue to check.
      Returns:
      the list of projects that will be affected.
    • getAllCustomFields

      public Iterable<OrderableField> getAllCustomFields(Issue issue)
      Returns the list of Custom Fields that are in the context of a passed issue and are visible.
      Parameters:
      issue - the issue in the query.
      Returns:
      a list of Custom Fields that are in the context of the passed issue.
    • getAllCustomFieldsWithOnAllScreensFlag

      public Iterable<Pair<OrderableField,Boolean>> getAllCustomFieldsWithOnAllScreensFlag(Issue issue)
      Returns the a list of pairs where each pair contains a Custom Field and an indication whether that field is visible for a passed issue.
      Parameters:
      issue - the issue in the query
      Returns:
      a list of pairs containing a Custom Field and a visibility flag. The Custom Fields are in the context of the passed issue.