public class CustomFieldsImpl extends Object implements CustomFields
| Constructor and Description |
|---|
CustomFieldsImpl(net.sourceforge.jwebunit.WebTester tester,
JIRAEnvironmentData environmentData,
Navigation navigation,
Form form) |
| Modifier and Type | Method and Description |
|---|---|
String |
addConfigurationSchemeContext(FieldId fieldId,
String label,
String[] issueTypeIds,
String[] projectIds)
Adds a custom field configuration scheme context.
|
String |
addConfigurationSchemeContext(String customFieldId,
String label,
String[] issueTypeIds,
String[] projectIds)
Adds a custom field configuration scheme context.
|
String |
addCustomField(String fieldType,
String fieldName)
Adds a custom field of the specified type to JIRA.
|
String |
addCustomField(String fieldType,
String fieldName,
String[] issueTypes,
String[] projects)
Adds a custom field of the specified type to JIRA.
|
void |
addOptions(String numericCustomFieldId,
String... options)
Add options to a customfield that supports it (i.e.
|
void |
disableOptions(String numericCustomFieldId,
String... options)
disable options from a customfield that supports them (i.e.
|
void |
editConfigurationSchemeContextById(String customFieldId,
String fieldConfigSchemeId,
String label,
String[] issueTypeIds,
String[] projectIds)
Alters an existing custom field configuration scheme context.
|
void |
editConfigurationSchemeContextByLabel(String numericCustomFieldId,
String label,
String newLabel,
String[] issueTypeIds,
String[] projectIds)
Alters an existing custom field configuration scheme context.
|
void |
editOptionValue(String numericCustomFieldId,
String option,
String newValue)
Change teh display value of an option from a customfield that supports them (i.e.
|
void |
enableOptions(String numericCustomFieldId,
String... options)
enable options from a customfield that supports them (i.e.
|
void |
goToCustomFieldConfiguration(FieldId fieldId)
Navigates to `Configure Custom Field` page.
|
void |
goToCustomFieldConfiguration(String numericCustomFieldId)
Navigates to `Configure Custom Field` page.
|
void |
removeConfigurationSchemeContextById(String numericCustomFieldId,
String fieldConfigSchemeId)
Removes the context from the specified custom field with the specified config scheme id.
|
void |
removeConfigurationSchemeContextByLabel(String numericCustomFieldId,
String fieldConfigSchemeLabel)
Removes the context from the specified custom field with the specified config scheme id.
|
void |
removeCustomField(String customFieldId)
Removes the custom field
|
void |
removeGlobalContext(String customFieldId)
Removes the global context from the specified custom field's configuration schemes.
|
void |
removeOptions(String numericCustomFieldId,
String... options)
Remove options from a customfield that supports them (i.e.
|
String |
renameCustomField(String numericCustomFieldId,
String newCustomFieldName)
Renames the custom field.
|
void |
setCascadingSelectDefaultValue(String numericCustomFieldId,
String defValue,
String cascadingDefValue)
Set default value for any custom field that supports default value.
|
String |
setCustomFieldSearcher(String customFieldId,
String searcherKey)
Sets the searcher for the specified custom field.
|
void |
setDefaultValue(FieldId fieldId,
String defValue)
Set default value for any custom field that supports default value.
|
void |
setDefaultValue(String numericCustomFieldId,
String defValue)
Set default value for any custom field that supports default value.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuiltInCustomFieldKey, funcTestCustomFieldKey, numericCfId@Inject
public CustomFieldsImpl(net.sourceforge.jwebunit.WebTester tester,
JIRAEnvironmentData environmentData,
Navigation navigation,
Form form)
public String addCustomField(String fieldType, String fieldName)
CustomFieldsaddCustomField in interface CustomFieldsfieldType - the full name of the custom field type to add e.g. com.atlassian.jira.plugin.system.customfieldtypes:userpickerfieldName - the name of the custom field e.g. UserCFA formatted String containing the id of the custom field, the format used is: customfield_customfield-id
For example, customfield_10000
public String addCustomField(String fieldType, String fieldName, String[] issueTypes, String[] projects)
CustomFieldsaddCustomField in interface CustomFieldsfieldType - the full name of the custom field type to add e.g. com.atlassian.jira.plugin.system.customfieldtypes:userpickerfieldName - the name of the custom field e.g. UserCFissueTypes - the ids of the issue types; must not be nullprojects - the ids of the projects; must not be nullcustomfield_10000public String setCustomFieldSearcher(String customFieldId, String searcherKey)
CustomFieldssetCustomFieldSearcher in interface CustomFieldscustomFieldId - the numeric custom field idsearcherKey - the full key of the searcher to use e.g. com.atlassian.jira.plugin.system.customfieldtypes:numberrange.
Use null to remove the searcher.public String renameCustomField(String numericCustomFieldId, String newCustomFieldName)
CustomFieldsrenameCustomField in interface CustomFieldsnumericCustomFieldId - the numeric custom field idnewCustomFieldName - the new name for the custom field e.g. My CFpublic String addConfigurationSchemeContext(String customFieldId, String label, String[] issueTypeIds, String[] projectIds)
CustomFieldsaddConfigurationSchemeContext in interface CustomFieldscustomFieldId - the numeric custom field idlabel - the new nameissueTypeIds - the ids of the issue types; must not be nullprojectIds - the ids of the projects; must not be null10013public String addConfigurationSchemeContext(FieldId fieldId, String label, String[] issueTypeIds, String[] projectIds)
CustomFieldsaddConfigurationSchemeContext in interface CustomFieldsfieldId - field idlabel - the new nameissueTypeIds - the ids of the issue types; must not be nullprojectIds - the ids of the projects; must not be null10013public void editConfigurationSchemeContextById(String customFieldId, String fieldConfigSchemeId, String label, String[] issueTypeIds, String[] projectIds)
CustomFieldseditConfigurationSchemeContextById in interface CustomFieldscustomFieldId - the numeric custom field idfieldConfigSchemeId - the id of the schemelabel - the new name; use null if no update requiredissueTypeIds - the ids of the issue types; use null if no update requiredprojectIds - the ids of the projects; use null if no update requiredpublic void editConfigurationSchemeContextByLabel(String numericCustomFieldId, String label, String newLabel, String[] issueTypeIds, String[] projectIds)
CustomFieldseditConfigurationSchemeContextByLabel in interface CustomFieldsnumericCustomFieldId - the numeric custom field idlabel - the label of the schemenewLabel - the new name; use null if no update requiredissueTypeIds - the ids of the issue types; use null if no update requiredprojectIds - the ids of the projects; use null if no update requiredpublic void removeGlobalContext(String customFieldId)
CustomFieldsremoveGlobalContext in interface CustomFieldscustomFieldId - the numeric custom field idpublic void removeConfigurationSchemeContextById(String numericCustomFieldId, String fieldConfigSchemeId)
CustomFieldsremoveConfigurationSchemeContextById in interface CustomFieldsnumericCustomFieldId - the numeric custom field idfieldConfigSchemeId - the numeric field config scheme idpublic void removeConfigurationSchemeContextByLabel(String numericCustomFieldId, String fieldConfigSchemeLabel)
CustomFieldsremoveConfigurationSchemeContextByLabel in interface CustomFieldsnumericCustomFieldId - the numeric custom field idfieldConfigSchemeLabel - the label of the field config schemepublic void removeCustomField(String customFieldId)
CustomFieldsremoveCustomField in interface CustomFieldscustomFieldId - the full custom field id e.g. customfield_10000public void addOptions(String numericCustomFieldId, String... options)
CustomFieldsaddOptions in interface CustomFieldsnumericCustomFieldId - the numeric customfield idoptions - the options to addpublic void setDefaultValue(String numericCustomFieldId, String defValue)
CustomFieldssetDefaultValue in interface CustomFieldsnumericCustomFieldId - the numeric customfield iddefValue - default valuepublic void setDefaultValue(FieldId fieldId, String defValue)
CustomFieldssetDefaultValue in interface CustomFieldsfieldId - field iddefValue - default valuepublic void setCascadingSelectDefaultValue(String numericCustomFieldId, String defValue, String cascadingDefValue)
CustomFieldssetCascadingSelectDefaultValue in interface CustomFieldsnumericCustomFieldId - the numeric customfield iddefValue - display text of default valuecascadingDefValue - display text of default cascading valuepublic void removeOptions(String numericCustomFieldId, String... options)
CustomFieldsremoveOptions in interface CustomFieldsnumericCustomFieldId - the numeric custom field idoptions - to removepublic void disableOptions(String numericCustomFieldId, String... options)
CustomFieldsdisableOptions in interface CustomFieldsnumericCustomFieldId - the numeric custom field idoptions - to disablepublic void enableOptions(String numericCustomFieldId, String... options)
CustomFieldsenableOptions in interface CustomFieldsnumericCustomFieldId - the numeric custom field idoptions - to enablepublic void editOptionValue(String numericCustomFieldId, String option, String newValue)
CustomFieldseditOptionValue in interface CustomFieldsnumericCustomFieldId - the numeric custom field idoption - id to changepublic void goToCustomFieldConfiguration(String numericCustomFieldId)
CustomFieldsgoToCustomFieldConfiguration in interface CustomFieldsnumericCustomFieldId - the numeric custom field idpublic void goToCustomFieldConfiguration(FieldId fieldId)
CustomFieldsgoToCustomFieldConfiguration in interface CustomFieldsfieldId - field idCopyright © 2002-2023 Atlassian. All Rights Reserved.