Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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
atlassian, knowledge sharing, intentional knowledge sharing playbook, loom, confluence, team collaboration, knowledge management, workplace productivity, information silos, documentation best practices, internal communication, knowledge sharing strategies

Conquer collaboration chaos with Loom + Confluence

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
AUG Leaders

Atlassian Community Events