Groovy script editor does not recognize com.atlassian.confluence.labels

t3knoid December 8, 2020

I need to be able to programmatically add a label into a newly created page from a Groovy script. After doing some searches, I came across the com.atlassian.confluence.labels class. I tried adding an import in my script, but I get it errors out not being able to resolve this class:

The script could not be compiled:

org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
Script214.groovy: 6: unable to resolve class com.atlassian.confluence.labels
 @ line 6, column 1.
   import com.atlassian.confluence.labels
   ^

1 error

 I know the class exists because it is recognize in Intellij.

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
6.13.11
TAGS
AUG Leaders

Atlassian Community Events