Interface ScriptField

All Superinterfaces:
Field

public interface ScriptField extends Field
Script field
  • Method Details

    • getCode

      String getCode()
      Get the code of the script
      Returns:
      the code of the script
    • setCode

      void setCode(String code)
      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 void setViewRole(com.atlassian.jira.security.roles.ProjectRole role)
      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 void setNobodyAsViewRole()
      Deprecated.
      Deprecated. Use the FieldRestriction class. Set nobody as view role for the field.
    • setFieldRestriction

      void setFieldRestriction(FieldRestriction restriction)
      Set Restriction options for viewing and editing values. Create FieldRestriction by FieldRestrictionBuilder
      Parameters:
      restriction - for the field