Interface CustomFieldUpdateService
- All Known Implementing Classes:
CustomFieldUpdateServiceImpl
public interface CustomFieldUpdateService
Service to hide the way custom fields get updated. Should be used for custom field update operations.
Implementation differs at runtime depending on the version of JIRA the plugin is running in
-
Method Summary
Modifier and TypeMethodDescriptionvoidupdateDescription(com.atlassian.jira.issue.fields.CustomField field, String newDescription) Update and save a new description for the given fieldvoidupdateFieldSearcher(com.atlassian.jira.issue.fields.CustomField field, com.atlassian.jira.issue.customfields.CustomFieldSearcher searcher) Update and save the CustomFieldSearcher to be used by this fieldvoidupdateName(com.atlassian.jira.issue.fields.CustomField field, String newName) Update and save a new name for the given fieldvoidupdateNameAndDescription(com.atlassian.jira.issue.fields.CustomField field, String name, String description) Update both the name and description of the field.
-
Method Details
-
updateName
Update and save a new name for the given field- Parameters:
field- to updatenewName- the name to call the field
-
updateDescription
Update and save a new description for the given field- Parameters:
field- to updatenewDescription- the description to set on the field
-
updateNameAndDescription
void updateNameAndDescription(com.atlassian.jira.issue.fields.CustomField field, String name, String description) Update both the name and description of the field. Similar to the above methods but only performs a single save operation.- Parameters:
field- to updatename- new namedescription- new description
-
updateFieldSearcher
void updateFieldSearcher(com.atlassian.jira.issue.fields.CustomField field, com.atlassian.jira.issue.customfields.CustomFieldSearcher searcher) Update and save the CustomFieldSearcher to be used by this field- Parameters:
field- to updatesearcher- to use
-