How can I check whether a space has a space label set in it? (For macro use)

Steve Goldberg
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 11, 2012

Hi,

I'm writing a macro that needs a conditional statement that checks whether the space the page is in has a space label set. Can anybody help?

Thanks

1 answer

0 votes
Matthew J. Horn
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 14, 2012

Have you tried calling the getLabelsOnSpace() method on the SpaceLabelManagerImpl class?

More info:

http://docs.atlassian.com/atlassian-confluence/latest/

hth,

matt

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events