Cprime Apps has been rebranded as Anova Apps. Please note the only effect is the company name - all of our products’ names, logos, functionalities, support, etc. is exactly the same. The new location to our documentation space is https://anovaapps.atlassian.net.
This routine is available starting with SIL Engine™ 2.5.19 / 2.6.11.
admCreateCustomField(fieldName, description, fieldType, fieldSearcher, projects, issueTypes)
DescriptionCreates a new custom field, offering support also for setting its context and searcher.
|fieldName||string||yes||Custom field name.|
|description||string||yes||Custom field description (can be blank).|
|fieldType||string||yes||Custom field type (either key or name).|
|fieldSearcher||string||yes||Custom field searcher (either key or name). If blank, the default custom field searcher for the given type will be considered.|
|projects||string||yes||Projects context (project keys). If empty, global issue context will be considered.|
|issueTypes||string||yes||Issue types context (either names or ids). If empty, all issue types will be considered.|
Returns the string id (customfield_xxxxx) of the newly created custom field.
Creating a single line text field with default searcher (Free Text Searcher) and global context:
Creating a multi-line text field with blank description, specified searcher name (Free Text Searcher) and specified project and issue types context:
Creating a date picker field with blank description, specified searcher key, and specified issue types ids context:
If the provided custom field searcher key or name is wrong, it will be ignored and the custom field will be created with no searcher configured.