Interface FieldService
public interface FieldService
Field service
-
Method Summary
Modifier and TypeMethodDescriptionClone a field.create
(DateFieldBuilder builder) Create a date field.create
(DateTimeFieldBuilder builder) Create a date time field.create
(DurationFieldBuilder builder) Create a duration field.create
(FormulaFieldBuilder builder) Create a formula field.create
(GroupFieldBuilder builder) Create a group field.create
(GroupMultipleFieldBuilder builder) Create a group multiple field.create
(ListExtFieldBuilder builder) Create a list external field.create
(ListExtMultipleFieldBuilder builder) Create a list ext multiple field.create
(ListMultipleFieldBuilder builder) Create a list multiple field.create
(ListParentFieldBuilder builder) Create a list field.create
(NumberFieldBuilder builder) Create a number field.create
(PriorityFieldBuilder builder) Create a priority field.create
(ProjectFieldBuilder builder) Create a project field.create
(ProjectMultipleFieldBuilder builder) Create a project multiple field.create
(ScriptFieldBuilder builder) Create a script field.create
(StatusFieldBuilder builder) Create a status field.create
(TextFieldBuilder builder) Create a text field.create
(TextMultipleFieldBuilder builder) Create a text multiple field.create
(UserFieldBuilder builder) Create a user field.create
(UserMultipleFieldBuilder builder) Create a user multiple field.void
Delete the field.get()
Get the list of fields.get
(com.atlassian.jira.user.ApplicationUser applicationUser, com.atlassian.jira.project.Project project) Get fields by application userGet the field by id.Get the list of fields based on the user languageGet the field by name.Get the field by name.Get the list of fields based on the language of the user.getByCustomFieldId
(Long customFieldId) Get by custom field id.Deprecated.Deprecated.Get date field builder.Get date time field builder.Get duration field builder.getExternalFieldsUsedConnection
(int connectionId) Get the list of the External fields that is used by one connectionGet formula field builder.Get group field builder.Get group multiple field builder.getHierarchy
(ListField field) Get the complete hierarchy of a fieldGet list external field builder.Get list external multiple field builder.Get list field builder.Get list multiple field builder.Get number field builder.Get all predefined fieldsGet priority field builder.Get project field builder.Get project multiple field builder.Get script field builder.Deprecated.Deprecated.Get all fields without systemGet status field builder.Get all system fieldsgetSystemFields
(Locale locale) Get all system fields based on the language of the userGet a text field builder.Get text multiple field builder.Get user field builder.Get user multiple field builder.getWithIgnoreCase
(String name) Get the field by name with ignore casegetWithIgnoreCase
(String name, Locale locale) Get the field by name with ignore casevoid
Update the field.
-
Method Details
-
getTextFieldBuilder
TextFieldBuilder getTextFieldBuilder()Get a text field builder.- Returns:
- the text field builder
-
create
Create a text field.- Parameters:
builder
- the text builder- Returns:
- the text field
-
getTextMultipleFieldBuilder
TextMultipleFieldBuilder getTextMultipleFieldBuilder()Get text multiple field builder.- Returns:
- the text multiple field builder
-
create
Create a text multiple field.- Parameters:
builder
- the text multiple builder- Returns:
- the text multiple field
-
getNumberFieldBuilder
NumberFieldBuilder getNumberFieldBuilder()Get number field builder.- Returns:
- the number field builder
-
create
Create a number field.- Parameters:
builder
- the number field builder- Returns:
- the number field
-
getDurationFieldBuilder
DurationFieldBuilder getDurationFieldBuilder()Get duration field builder.- Returns:
- the duration field builder
-
create
Create a duration field.- Parameters:
builder
- the duration field builder- Returns:
- the duration field
-
getDateFieldBuilder
DateFieldBuilder getDateFieldBuilder()Get date field builder.- Returns:
- the date field builder
-
create
Create a date field.- Parameters:
builder
- the date field builder- Returns:
- the date field
-
getDateTimeFieldBuilder
DateTimeFieldBuilder getDateTimeFieldBuilder()Get date time field builder.- Returns:
- the date time field builder
-
create
Create a date time field.- Parameters:
builder
- the date time field builder- Returns:
- the date time field
-
getUserFieldBuilder
UserFieldBuilder getUserFieldBuilder()Get user field builder.- Returns:
- the user field builder
-
create
Create a user field.- Parameters:
builder
- the user field builder- Returns:
- the user field
-
getUserMultipleFieldBuilder
UserMultipleFieldBuilder getUserMultipleFieldBuilder()Get user multiple field builder.- Returns:
- the user multiple field builder
-
create
Create a user multiple field.- Parameters:
builder
- the user multiple field builder- Returns:
- the user multiple field
-
getGroupFieldBuilder
GroupFieldBuilder getGroupFieldBuilder()Get group field builder.- Returns:
- the group field builder
-
create
Create a group field.- Parameters:
builder
- the group field builder- Returns:
- the group field
-
getGroupMultipleFieldBuilder
GroupMultipleFieldBuilder getGroupMultipleFieldBuilder()Get group multiple field builder.- Returns:
- the group multiple field builder
-
create
Create a group multiple field.- Parameters:
builder
- the group multiple field builder- Returns:
- the group multiple field
-
getProjectFieldBuilder
ProjectFieldBuilder getProjectFieldBuilder()Get project field builder.- Returns:
- the project field builder
-
create
Create a project field.- Parameters:
builder
- the project field builder- Returns:
- the project field
-
getProjectMultipleFieldBuilder
ProjectMultipleFieldBuilder getProjectMultipleFieldBuilder()Get project multiple field builder.- Returns:
- the project multiple field builder
-
create
Create a project multiple field.- Parameters:
builder
- the project multiple field builder- Returns:
- the project multiple field
-
getFormulaFieldBuilder
FormulaFieldBuilder getFormulaFieldBuilder()Get formula field builder.- Returns:
- the formula field builder
-
create
Create a formula field.- Parameters:
builder
- the formula field builder- Returns:
- the formula field
-
getScriptFieldBuilder
ScriptFieldBuilder getScriptFieldBuilder()Get script field builder.- Returns:
- the script field builder
-
create
Create a script field.- Parameters:
builder
- the script field builder- Returns:
- the script field
-
getStatusFieldBuilder
StatusFieldBuilder getStatusFieldBuilder()Get status field builder.- Returns:
- the status field builder
-
create
Create a status field.- Parameters:
builder
- the status field builder- Returns:
- the status field
-
getPriorityFieldBuilder
PriorityFieldBuilder getPriorityFieldBuilder()Get priority field builder.- Returns:
- the priority field builder
-
create
Create a priority field.- Parameters:
builder
- the priority field builder- Returns:
- the priority field
-
getListFieldBuilder
ListParentFieldBuilder getListFieldBuilder()Get list field builder.- Returns:
- the list field builder
-
create
Create a list field.- Parameters:
builder
- the list field builder- Returns:
- the list field
-
getListMultipleFieldBuilder
ListMultipleFieldBuilder getListMultipleFieldBuilder()Get list multiple field builder.- Returns:
- the list multiple field builder
-
create
Create a list multiple field.- Parameters:
builder
- the list multiple field builder- Returns:
- the list multiple field
-
getListExtFieldBuilder
ListExtFieldBuilder getListExtFieldBuilder()Get list external field builder.- Returns:
- the list external field builder
-
create
Create a list external field.- Parameters:
builder
- the list external field builder- Returns:
- the list external field
-
getListExtMultipleFieldBuilder
ListExtMultipleFieldBuilder getListExtMultipleFieldBuilder()Get list external multiple field builder.- Returns:
- the list external multiple field builder
-
create
Create a list ext multiple field.- Parameters:
builder
- the list external field builder- Returns:
- the list external multiple field
-
clone
Clone a field.- Parameters:
field
- the field to be clonedname
- the name of the new field- Returns:
- the field cloned
-
get
Get the list of fields.- Returns:
- the list of fields.
-
get
Get the list of fields based on the language of the user.- Parameters:
locale
- the locale- Returns:
- the list of fields.
-
getStandardFields
Get all fields without system- Returns:
- list of fields
-
getSystemFields
Get all system fields- Returns:
- list of system fields
-
getSystemFields
Get all system fields based on the language of the user- Parameters:
locale
- the locale- Returns:
- list of system fields
-
getCalculatedFields
Deprecated.Deprecated. There are not any Calculated Fields. Get all calculated fields- Returns:
- list of calculated fields
-
getStandardAndCalculatedFields
Deprecated.Deprecated. Use the following method: getStandardFields() Get all fields without system fields- Returns:
- list of fields
-
getPredefinedFields
Get all predefined fields- Returns:
- list of predefined fields
-
get
Get the field by id.- Parameters:
id
- the id of the field- Returns:
- the field
-
get
Get the list of fields based on the user language- Parameters:
locale
- the locale- Returns:
- the list of fields.
-
get
Get the field by name.- Parameters:
name
- the name of the field- Returns:
- the field
-
get
Get the field by name.- Parameters:
name
- the name of the fieldlocale
- the locale- Returns:
- the field
-
getWithIgnoreCase
Get the field by name with ignore case- Parameters:
name
- the name of the field- Returns:
- the field
-
getWithIgnoreCase
Get the field by name with ignore case- Parameters:
name
- the name of the fieldlocale
- the locale- Returns:
- the field
-
get
List<Field> get(com.atlassian.jira.user.ApplicationUser applicationUser, com.atlassian.jira.project.Project project) Get fields by application user- Parameters:
applicationUser
- User to check view permissions in each fieldproject
- Project to get fields- Returns:
- All fields with user permission in project
-
getByCustomFieldId
Get by custom field id.- Parameters:
customFieldId
- the custom field id of the field- Returns:
- the field
-
update
Update the field.- Parameters:
field
- the field to be updated
-
delete
Delete the field.- Parameters:
field
- the field of the field
-
getExternalFieldsUsedConnection
Get the list of the External fields that is used by one connection- Parameters:
connectionId
- id of the connection- Returns:
- the list of the External fields
-
getHierarchy
Get the complete hierarchy of a field- Parameters:
field
- the field to get the hierarchy- Returns:
- an object with the complete hierarchy
-