Class FieldContextGenerator

java.lang.Object
com.atlassian.jira.issue.fields.FieldContextGenerator

public class FieldContextGenerator extends Object
A utility that responsible for providing a SearchContext from a list of visible projects and a custom field whose configuration limits it to certain project/issuetype pairs.
Since:
v4.0
  • Constructor Details

  • Method Details

    • generateClauseContext

      public ClauseContext generateClauseContext(List<Project> projects, String fieldId)
      Creates the Contexts that represent the combinations of project and issue type for which the given field is visible.
      Parameters:
      projects - some projects to get SchemeContexts for.
      fieldId - the field to use for visibility checking.
      Returns:
      the set of SchemeContexts.