Forums

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

Create Confluence Macro

Nate Christensen March 9, 2018

Hello, I'm trying to figure out how to make a macro that works with a task list. I would like to try to make something along the lines of, when the checkbox is unchecked the text is red. When the box is checked it's green and at a certain time all of the checkboxes get unchecked.

But I'm having a heck of a time finding anything on how to do this. Some of the scripts I see are written like the code below, but where do I find $spacekey or $space.key. Is there a list of those available 

#if (!$spacekey)
  #set ($spacekey=$space.key)
#end

 

1 answer

0 votes
Michael Haverbier April 24, 2018

There is an API documentation right here:

https://docs.atlassian.com/atlassian-confluence/6.6.0/

Searching for com.atlassian.confluence.spaces reveals the class Space where you can find the getKey method which you can use without the "get" part as it seems.

There is some more info here:

https://developer.atlassian.com/server/confluence/confluence-objects-accessible-from-velocity/

 

I also found no info why you could write space.key instead of space.getkey.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events