public class

ConfigurationContext

extends Object
java.lang.Object
   ↳ com.atlassian.jira.issue.fields.config.ConfigurationContext

Class Overview

Represents the "ConfigurationContext" Entity in the DB.

This entity is a mapping from a "FieldConfigScheme" to the list of Projects that are relevant to that FieldConfigScheme. A single entity with a null Project represents the "Global" context - any projects not explicitly listed in another context.

Note that there is also room here for a "ProjectCategory" context, but we don't actually expose this through the UI, and we should deprecate this ability in the API just in case some crazy plugin is using it.

Summary

Constants
String FIELD_CONFIG_SCHEME_ID
String FIELD_ID This field is called "customfield" in the DB and "key" in OfBiz Entity, but "Field ID" is what it actually stores.
String ID
String PROJECT_CATEGORY_ID
String PROJECT_ID
Public Constructors
ConfigurationContext(Long id, Long projectCategoryId, Long projectId, String fieldId, Long fieldConfigSchemeId)
Public Methods
Long getFieldConfigSchemeId()
String getFieldId()
Returns the "fieldId" field which is actually called "customfield" in the DB and "key" in OfBiz Entity.
Long getId()
Long getProjectCategoryId()
This database column was never populated through the GUI and is ignored from JIRA 7.0
Long getProjectId()
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String FIELD_CONFIG_SCHEME_ID

Constant Value: "fieldconfigscheme"

public static final String FIELD_ID

This field is called "customfield" in the DB and "key" in OfBiz Entity, but "Field ID" is what it actually stores.

Constant Value: "key"

public static final String ID

Constant Value: "id"

public static final String PROJECT_CATEGORY_ID

Constant Value: "projectcategory"

public static final String PROJECT_ID

Constant Value: "project"

Public Constructors

public ConfigurationContext (Long id, Long projectCategoryId, Long projectId, String fieldId, Long fieldConfigSchemeId)

Public Methods

public Long getFieldConfigSchemeId ()

public String getFieldId ()

Returns the "fieldId" field which is actually called "customfield" in the DB and "key" in OfBiz Entity.

It is in fact the Configurable Field ID eg "customfield_11002" or "issuetype", so we have given a more correct name here.

Returns
  • the "fieldId" field which is actually called "customfield" in the DB and "key" in OfBiz Entity.

public Long getId ()

public Long getProjectCategoryId ()

This database column was never populated through the GUI and is ignored from JIRA 7.0

public Long getProjectId ()