| java.lang.Object | |
| ↳ | com.atlassian.jira.issue.customfields.CustomFieldUtils |
| Constants | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| String | CUSTOM_FIELD_PREFIX | ||||||||||
| String | PARAM_REQUIRE_PROJECT_IDS |
This constant is deprecated.
since v6.2.3 use getParamKeyRequireProjectIds() instead.
|
|||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
Please use
convertToIssueContexts(Project, List). Since v4.0
| |||||||||||
Converts list of issue type ids to
IssueContexts. | |||||||||||
Given a custom field key, return its id or null.
| |||||||||||
This method is deprecated.
Use
getDateFormat() instead. Since v5.0.
| |||||||||||
This method is deprecated.
Use
getDateTimeFormat() instead. Since v5.0.
| |||||||||||
The prefix to be used by Atlassian defined custom field parameter names, so that we could avoid naming conflict
between Atlassian parameters and parameters used by third party plugin.
| |||||||||||
Name of the parameter that indicates whether the list of project id's associated with the current context
should be loaded, either from the current issue (when editing value of an issue) or
from FieldConfig and its FieldConfigScheme (when setting default value).
| |||||||||||
If
projectIds is not empty, return it. | |||||||||||
Retrieve the list of project id's from issue or field config, in the following order:
| |||||||||||
Retrieve the list of project id's from issue or field config, in the following order:
| |||||||||||
This method is deprecated.
Use
getTimeFormat() instead. Since v5.0.
| |||||||||||
Checks if the custom field is in the search context scope (using
isShown(com.atlassian.jira.issue.Issue))
and visible in all field schemes (using isFieldHiddenInAllSchemes(String, SearchContext, User)) | |||||||||||
Does the user have permission to at least one project that falls under this custom field.
| |||||||||||
Parses action parameters (Map of Collections of Strings with
| |||||||||||
| Protected Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
This constant is deprecated.
since v6.2.3 use getParamKeyRequireProjectIds() instead.
This method is deprecated.
Please use convertToIssueContexts(Project, List). Since v4.0
Converts list of issue type ids to IssueContexts.
| project | project generic value |
|---|---|
| issueTypeIds | Type ids as strings, eg. ["3", "4"] |
Converts list of issue type ids to IssueContexts.
| project | The project (may be null). |
|---|---|
| issueTypeIds | Type ids as strings, eg. ["3", "4"]. May be null or empty. |
Given a custom field key, return its id or null.
| key | eg. "customfield_10000" |
|---|
This method is deprecated.
Use getDateFormat() instead. Since v5.0.
Returns the configured Javascript date picker format.
ie the format stored in the "jira.date.picker.javascript.format" application property.
This method is deprecated.
Use getDateTimeFormat() instead. Since v5.0.
Returns the configured Javascript date-time picker format.
ie the format stored in the "jira.date.time.picker.javascript.format" application property.
The prefix to be used by Atlassian defined custom field parameter names, so that we could avoid naming conflict between Atlassian parameters and parameters used by third party plugin.
Name of the parameter that indicates whether the list of project id's associated with the current context should be loaded, either from the current issue (when editing value of an issue) or from FieldConfig and its FieldConfigScheme (when setting default value).
This parameter could be used in two places now:getVelocityParameters(com.atlassian.jira.issue.Issue, com.atlassian.jira.issue.fields.CustomField, com.atlassian.jira.issue.fields.layout.field.FieldLayoutItem)
to inform buildParams(com.atlassian.jira.issue.fields.CustomField, com.atlassian.jira.issue.fields.config.FieldConfig, com.atlassian.jira.issue.Issue, com.atlassian.jira.issue.fields.layout.field.FieldLayoutItem, Object, java.util.Map, webwork.action.Action, java.util.Map)
that project id's need to be loadedCustomFieldParams to inform validateFromParams(com.atlassian.jira.issue.customfields.view.CustomFieldParams, com.atlassian.jira.util.ErrorCollection, com.atlassian.jira.issue.fields.config.FieldConfig)
that project id's need to be loaded from field config scheme.If projectIds is not empty, return it.
Otherwise, return the list of project id's that the user could browse.
projectIds is not provided and userFilter contains no roleIds, the list of browsable project
ids will not be computed. An empty list will be returned instead.Retrieve the list of project id's from issue or field config, in the following order:
issue is not null and issue.getProjectId() is not null, return a single list with issue.getProjectId()config is not null, use it to retrieve the list of project id's associated with the current schemeRetrieve the list of project id's from issue or field config, in the following order:
issue is not null and issue.getProjectId() is not null, return a single list with issue.getProjectId()config is not null, use it to retrieve the list of project id's associated with the current scheme
This method is deprecated.
Use getTimeFormat() instead. Since v5.0.
Returns "12" or "24" from the Javascript date-time picker format.
Checks if the custom field is in the search context scope (using isShown(com.atlassian.jira.issue.Issue))
and visible in all field schemes (using isFieldHiddenInAllSchemes(String, SearchContext, User))
| customField | customfield to check visibility of |
|---|---|
| user | current user |
| searchContext | search context |
| fieldVisibilityManager | field visibility bean |
Does the user have permission to at least one project that falls under this custom field. If the custom field has not been configured for anything, it won't return true either
| customField | custom field |
|---|---|
| user | user |
Parses action parameters (Map of Collections of Strings with
| actionParameters | map of action parameters |
|---|---|
| customFields | a list of custom fields |