Hi,
Is there a way to list all the space category labels in a Confluence instance using Confluence API?
Best,
Roy
import com.atlassian.confluence.labels.LabelManagerimport com.atlassian.confluence.pages.PageManagerimport com.atlassian.sal.api.component.ComponentLocatordef labelManager = ComponentLocator.getComponent(LabelManager)def pageManager = ComponentLocator.getComponent(PageManager)def spaceKey = pageManager.getPage(1234).getSpaceKey()def result = labelManager.getLabelsByDetail("","team",spaceKey,"")
It looks like you're new here. Sign in or register to get started.