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.
You don't need more tools. You need tools that actually work together – the way humans do. See how Loom + Confluence help teams collaborate with more context, more connection, and fewer calendar invites. 💪
See inside