Interface ScriptField
- All Superinterfaces:
Field
Script field
-
Method Summary
Modifier and TypeMethodDescriptiongetCode()
Get the code of the scriptcom.atlassian.jira.user.ApplicationUser
getOwner()
Gets ownercom.deiser.jira.profields.script.domain.ScriptTemplateEnum
Gets template.void
Set the code of the scriptvoid
setFieldRestriction
(FieldRestriction restriction) Set Restriction options for viewing and editing values.void
Deprecated.void
setViewRole
(com.atlassian.jira.security.roles.ProjectRole role) Deprecated.Methods inherited from interface com.deiser.jira.profields.api.field.Field
getCustomFieldId, getDescription, getEditRoleId, getFieldActions, getFieldRestriction, getId, getName, getPQLToken, getType, getViewRoleId, hasCustomField, hasParent, isList, isMultiple, isPredefined, isSystem, setCustomField, setDescription, setName
-
Method Details
-
getCode
String getCode()Get the code of the script- Returns:
- the code of the script
-
setCode
Set the code of the script- Parameters:
code
- the code of the script
-
getTemplate
com.deiser.jira.profields.script.domain.ScriptTemplateEnum getTemplate()Gets template.- Returns:
- the template
-
getOwner
com.atlassian.jira.user.ApplicationUser getOwner()Gets owner- Returns:
- the owner
-
setViewRole
Deprecated.Deprecated. Use the FieldRestriction class. Set the view role of the field.- Parameters:
role
- the view role of jira for the field.
-
setNobodyAsViewRole
Deprecated.Deprecated. Use the FieldRestriction class. Set nobody as view role for the field. -
setFieldRestriction
Set Restriction options for viewing and editing values. Create FieldRestriction by FieldRestrictionBuilder- Parameters:
restriction
- for the field
-