com.atlassian.jira.projectconfig.fields
Class IssueFields

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

@Component
public class IssueFields
extends Object

A utility class for adding

Since:
v6.1

Constructor Summary
IssueFields(ScreenFinder screenFinder, ProjectFieldScreenHelper screenHelper, CustomFieldManager fieldManager, FieldLayoutManager fieldLayoutManager)
           
 
Method Summary
 void addFieldToIssueScreens(Field field, Issue issue)
           
 Iterable<Project> getAffectedProjects(Issue issue)
          Returns the list of projects that will be affected by adding a field to a screen.
 Iterable<OrderableField> getAllCustomFields(Issue issue)
          Returns the list of Custom Fields that are in the context of a passed issue and are visible.
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IssueFields

public IssueFields(ScreenFinder screenFinder,
                   ProjectFieldScreenHelper screenHelper,
                   CustomFieldManager fieldManager,
                   FieldLayoutManager fieldLayoutManager)
Method Detail

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.


Copyright © 2002-2014 Atlassian. All Rights Reserved.