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(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(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(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, wait
builtInCustomFieldKey, numericCfId
@Inject public CustomFieldsImpl(net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData, Navigation navigation, Form form)
public String addCustomField(String fieldType, String fieldName)
CustomFields
addCustomField
in interface CustomFields
fieldType
- the full name of the custom field type to add e.g. com.atlassian.jira.plugin.system.customfieldtypes:userpicker
fieldName
- the name of the custom field e.g. UserCF
A 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)
CustomFields
addCustomField
in interface CustomFields
fieldType
- the full name of the custom field type to add e.g. com.atlassian.jira.plugin.system.customfieldtypes:userpicker
fieldName
- the name of the custom field e.g. UserCF
issueTypes
- the ids of the issue types; must not be nullprojects
- the ids of the projects; must not be nullcustomfield_10000
public String setCustomFieldSearcher(String customFieldId, String searcherKey)
CustomFields
setCustomFieldSearcher
in interface CustomFields
customFieldId
- 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)
CustomFields
renameCustomField
in interface CustomFields
numericCustomFieldId
- the numeric custom field idnewCustomFieldName
- the new name for the custom field e.g. My CF
public String addConfigurationSchemeContext(String customFieldId, String label, String[] issueTypeIds, String[] projectIds)
CustomFields
addConfigurationSchemeContext
in interface CustomFields
customFieldId
- 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 null10013
public void editConfigurationSchemeContextById(String customFieldId, String fieldConfigSchemeId, String label, String[] issueTypeIds, String[] projectIds)
CustomFields
editConfigurationSchemeContextById
in interface CustomFields
customFieldId
- 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)
CustomFields
editConfigurationSchemeContextByLabel
in interface CustomFields
numericCustomFieldId
- 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)
CustomFields
removeGlobalContext
in interface CustomFields
customFieldId
- the numeric custom field idpublic void removeConfigurationSchemeContextById(String numericCustomFieldId, String fieldConfigSchemeId)
CustomFields
removeConfigurationSchemeContextById
in interface CustomFields
numericCustomFieldId
- the numeric custom field idfieldConfigSchemeId
- the numeric field config scheme idpublic void removeConfigurationSchemeContextByLabel(String numericCustomFieldId, String fieldConfigSchemeLabel)
CustomFields
removeConfigurationSchemeContextByLabel
in interface CustomFields
numericCustomFieldId
- the numeric custom field idfieldConfigSchemeLabel
- the label of the field config schemepublic void removeCustomField(String customFieldId)
CustomFields
removeCustomField
in interface CustomFields
customFieldId
- the full custom field id e.g. customfield_10000
public void addOptions(String numericCustomFieldId, String... options)
CustomFields
addOptions
in interface CustomFields
numericCustomFieldId
- the numeric customfield idoptions
- the options to addpublic void setDefaultValue(String numericCustomFieldId, String defValue)
CustomFields
setDefaultValue
in interface CustomFields
numericCustomFieldId
- the numeric customfield iddefValue
- default valuepublic void setCascadingSelectDefaultValue(String numericCustomFieldId, String defValue, String cascadingDefValue)
CustomFields
setCascadingSelectDefaultValue
in interface CustomFields
numericCustomFieldId
- the numeric customfield iddefValue
- display text of default valuecascadingDefValue
- display text of default cascading valuepublic void removeOptions(String numericCustomFieldId, String... options)
CustomFields
removeOptions
in interface CustomFields
numericCustomFieldId
- the numeric custom field idoptions
- to removepublic void disableOptions(String numericCustomFieldId, String... options)
CustomFields
disableOptions
in interface CustomFields
numericCustomFieldId
- the numeric custom field idoptions
- to disablepublic void enableOptions(String numericCustomFieldId, String... options)
CustomFields
enableOptions
in interface CustomFields
numericCustomFieldId
- the numeric custom field idoptions
- to enablepublic void editOptionValue(String numericCustomFieldId, String option, String newValue)
CustomFields
editOptionValue
in interface CustomFields
numericCustomFieldId
- the numeric custom field idoption
- id to changepublic void goToCustomFieldConfiguration(String numericCustomFieldId)
CustomFields
goToCustomFieldConfiguration
in interface CustomFields
numericCustomFieldId
- the numeric custom field idCopyright © 2002-2019 Atlassian. All Rights Reserved.