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.