Interface ScriptField
- All Superinterfaces:
- Field
Script field
- 
Method SummaryModifier and TypeMethodDescriptiongetCode()Get the code of the scriptcom.atlassian.jira.user.ApplicationUsergetOwner()Gets ownercom.deiser.jira.profields.script.domain.ScriptTemplateEnumGets template.voidSet the code of the scriptvoidsetFieldRestriction(FieldRestriction restriction) Set Restriction options for viewing and editing values.voidDeprecated.voidsetViewRole(com.atlassian.jira.security.roles.ProjectRole role) Deprecated.Methods inherited from interface com.deiser.jira.profields.api.field.FieldgetCustomFieldId, getDescription, getEditRoleId, getFieldActions, getFieldRestriction, getId, getName, getPQLToken, getType, getViewRoleId, hasCustomField, hasParent, isList, isMultiple, isPredefined, isSystem, setCustomField, setDescription, setName
- 
Method Details- 
getCodeString getCode()Get the code of the script- Returns:
- the code of the script
 
- 
setCodeSet the code of the script- Parameters:
- code- the code of the script
 
- 
getTemplatecom.deiser.jira.profields.script.domain.ScriptTemplateEnum getTemplate()Gets template.- Returns:
- the template
 
- 
getOwnercom.atlassian.jira.user.ApplicationUser getOwner()Gets owner- Returns:
- the owner
 
- 
setViewRoleDeprecated.Deprecated. Use the FieldRestriction class. Set the view role of the field.- Parameters:
- role- the view role of jira for the field.
 
- 
setNobodyAsViewRoleDeprecated.Deprecated. Use the FieldRestriction class. Set nobody as view role for the field.
- 
setFieldRestrictionSet Restriction options for viewing and editing values. Create FieldRestriction by FieldRestrictionBuilder- Parameters:
- restriction- for the field
 
 
-