Interface JiraCustomFieldUtilsService
- All Known Implementing Classes:
JiraCustomFieldUtilsServiceImpl
public interface JiraCustomFieldUtilsService
Service wrapper for Jira's CustomFieldUtils class.
-
Method Summary
Modifier and TypeMethodDescriptionList<com.atlassian.jira.issue.issuetype.IssueType>
buildIssueTypes
(String[] issueTypes) Constructs a list of IssueTypes corresponding to the IDs passed in.List<com.atlassian.jira.issue.context.JiraContextNode>
buildJiraIssueContexts
(boolean global, Long[] projectId) boolean
isShownAndVisible
(com.atlassian.jira.issue.fields.CustomField customField, com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.issue.search.SearchContext searchContext) Checks if the custom field is in the search context scope (usingOrderableField.isShown(com.atlassian.jira.issue.Issue)
) and visible in all field schemes.
-
Method Details
-
buildIssueTypes
Constructs a list of IssueTypes corresponding to the IDs passed in.- Parameters:
issueTypes
- Array of IDs- Returns:
- List of IssueType objects
-
buildJiraIssueContexts
List<com.atlassian.jira.issue.context.JiraContextNode> buildJiraIssueContexts(boolean global, Long[] projectId) - Parameters:
global
- whether the contexts should be globalprojectId
- array of project IDs- Returns:
- a non-null list
-
isShownAndVisible
boolean isShownAndVisible(com.atlassian.jira.issue.fields.CustomField customField, com.atlassian.jira.user.ApplicationUser user, com.atlassian.jira.issue.search.SearchContext searchContext) Checks if the custom field is in the search context scope (usingOrderableField.isShown(com.atlassian.jira.issue.Issue)
) and visible in all field schemes.- Parameters:
customField
- customfield to check visibility ofuser
- current usersearchContext
- search context- Returns:
- true if the customfield is in scope and visibile in all schemes in the specified search context
- See Also:
-
OrderableField.isShown(com.atlassian.jira.issue.Issue)
-