Interface JiraCustomFieldUtilsService

All Known Implementing Classes:
JiraCustomFieldUtilsServiceImpl

public interface JiraCustomFieldUtilsService
Service wrapper for Jira's CustomFieldUtils class.
  • Method Summary

    Modifier and Type
    Method
    Description
    List<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 (using OrderableField.isShown(com.atlassian.jira.issue.Issue)) and visible in all field schemes.
  • Method Details

    • buildIssueTypes

      List<com.atlassian.jira.issue.issuetype.IssueType> buildIssueTypes(String[] issueTypes)
      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 global
      projectId - 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 (using OrderableField.isShown(com.atlassian.jira.issue.Issue)) and visible in all field schemes.
      Parameters:
      customField - customfield to check visibility of
      user - current user
      searchContext - 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)