|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.functest.framework.AbstractFuncTestUtil
com.atlassian.jira.functest.framework.admin.CustomFieldsImpl
public class CustomFieldsImpl
| Field Summary |
|---|
| Fields inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil |
|---|
environmentData, FS, locators, logger, logIndentLevel, tester |
| Constructor Summary | |
|---|---|
CustomFieldsImpl(net.sourceforge.jwebunit.WebTester tester,
com.atlassian.jira.webtests.util.JIRAEnvironmentData environmentData,
Navigation navigation,
Form form)
|
|
| Method Summary | |
|---|---|
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 |
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. |
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. |
| Methods inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil |
|---|
childLogIndentLevel, getAssertions, getEnvironmentData, getFuncTestHelperFactory, getLogger, log, log, navigation, submitAtPage |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CustomFieldsImpl(net.sourceforge.jwebunit.WebTester tester,
com.atlassian.jira.webtests.util.JIRAEnvironmentData environmentData,
Navigation navigation,
Form form)
| Method Detail |
|---|
public String addCustomField(String fieldType,
String fieldName)
CustomFields
addCustomField 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. 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 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 null
customfield_10000
public String setCustomFieldSearcher(String customFieldId,
String searcherKey)
CustomFields
setCustomFieldSearcher 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)
CustomFields
renameCustomField in interface CustomFieldsnumericCustomFieldId - 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 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 null
10013
public void editConfigurationSchemeContextById(String customFieldId,
String fieldConfigSchemeId,
String label,
String[] issueTypeIds,
String[] projectIds)
CustomFields
editConfigurationSchemeContextById 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 required
public void editConfigurationSchemeContextByLabel(String numericCustomFieldId,
String label,
String newLabel,
String[] issueTypeIds,
String[] projectIds)
CustomFields
editConfigurationSchemeContextByLabel 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)
CustomFields
removeGlobalContext in interface CustomFieldscustomFieldId - the numeric custom field id
public void removeConfigurationSchemeContextById(String numericCustomFieldId,
String fieldConfigSchemeId)
CustomFields
removeConfigurationSchemeContextById in interface CustomFieldsnumericCustomFieldId - the numeric custom field idfieldConfigSchemeId - the numeric field config scheme id
public void removeConfigurationSchemeContextByLabel(String numericCustomFieldId,
String fieldConfigSchemeLabel)
CustomFields
removeConfigurationSchemeContextByLabel in interface CustomFieldsnumericCustomFieldId - the numeric custom field idfieldConfigSchemeLabel - the label of the field config schemepublic void removeCustomField(String customFieldId)
CustomFields
removeCustomField in interface CustomFieldscustomFieldId - the full custom field id e.g. customfield_10000
public void addOptions(String numericCustomFieldId,
String... options)
CustomFields
addOptions in interface CustomFieldsnumericCustomFieldId - the numeric customfield idoptions - the options to add
public void setDefaultValue(String numericCustomFieldId,
String defValue)
CustomFields
setDefaultValue in interface CustomFieldsnumericCustomFieldId - the numeric customfield iddefValue - default value
public void removeOptions(String numericCustomFieldId,
String... options)
CustomFields
removeOptions in interface CustomFieldsnumericCustomFieldId - the numeric custom field idoptions - to remove
public void disableOptions(String numericCustomFieldId,
String... options)
CustomFields
disableOptions in interface CustomFieldsnumericCustomFieldId - the numeric custom field idoptions - to disable
public void enableOptions(String numericCustomFieldId,
String... options)
CustomFields
enableOptions in interface CustomFieldsnumericCustomFieldId - the numeric custom field idoptions - to enable
public void editOptionValue(String numericCustomFieldId,
String option,
String newValue)
CustomFields
editOptionValue in interface CustomFieldsnumericCustomFieldId - the numeric custom field idoption - id to change
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||