Class IssueFields
java.lang.Object
com.atlassian.jira.projectconfig.fields.IssueFields
A utility class for adding
- Since:
- v6.1
-
Constructor Summary
ConstructorsConstructorDescriptionIssueFields
(ScreenFinder screenFinder, ProjectFieldScreenHelper screenHelper, CustomFieldManager fieldManager, FieldLayoutManager fieldLayoutManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFieldToIssueScreens
(Field field, Issue issue) getAffectedProjects
(Issue issue) Returns the list of projects that will be affected by adding a field to a screen.getAllCustomFields
(Issue issue) Returns the list of Custom Fields that are in the context of a passed issue and are visible.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.
-
Constructor Details
-
IssueFields
@Autowired public IssueFields(ScreenFinder screenFinder, ProjectFieldScreenHelper screenHelper, CustomFieldManager fieldManager, FieldLayoutManager fieldLayoutManager)
-
-
Method Details
-
addFieldToIssueScreens
-
getAffectedProjects
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
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
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.
-