Advertisement
atelbor

[GRVY] Imports

Oct 6th, 2022 (edited)
783
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*************************/
  2. /*   GROOVY - Imports    */
  3. /*************************/
  4.  
  5. import com.atlassian.jira.component.ComponentAccessor
  6. import com.atlassian.jira.issue.CustomFieldManager
  7. import com.atlassian.jira.security.roles.ProjectRoleManager
  8. import com.onresolve.scriptrunner.runner.customisers.PluginModule
  9. import com.onresolve.scriptrunner.runner.customisers.WithPlugin
  10.  
  11. @PluginModule
  12. CustomFieldManager customFieldManager
  13. //// Alternativas
  14. def customFieldManager = ComponentAccessor.getCustomFieldManager()
  15. def customFieldManager = ComponentAccessor.customFieldManager
  16.  
  17. def projectRoleManager = ComponentAccessor.getComponentOfType(ProjectRoleManager)
  18.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement