Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Restrict macro to specific space

I have created a macro name as "My Task" in Confluence.

<ac:structured-macro ac:name="tasks-report-macro">
<ac:parameter ac:name="assignees">
<ri:user ri:userkey="$action.remoteUser.key"/>
</ac:parameter ac:name="pageSize">;10</ac:parameter>;


Now i need to add parameter so that i can filter current tasks restricted to a specific space ?

Let me know if anyone done this?




2 answers

0 votes

Hello @Amit Anand !

As I understand, you need to limit your search within the user macro to a specific space based on space key.

You will need to get the value from $spaceManager.getSpace($spaceKey).getName() and then check all space occurrences for the selected Space Key. You can check more information on how to work with velocity loops and classes in these threads and also our documentation. Here, take a look:

You can also try to reach out to our sister community, the Developer Community! There you will be able to find skilled help for development questions. Here it is:

Let us hear from you!

Dear @Diego ,

Thanks for your reply !

I have achieved this with below macro(can able to select single space) but need to select multiple space at a time so is there a way out to have multiple space selection?

Below macro for your reference

<ac:structured-macro ac:name="tasks-report-macro">

<ac:parameter ac:name="spaces">$paramSpace</ac:parameter>

<ac:parameter ac:name="assignees"><ri:user ri:userkey="$action.remoteUser.key"/></ac:parameter>





Like Diego likes this

Dear @Diego ,

Let me know if there is a way to create macro where we can select multiple space at a time ?

Looking for reply .


Amit Anand


Any update on this?

If we can create macro where we can select multiple space at a time ?


Amit Anand

Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Confluence

Announcing Team Calendars in Confluence Data Center

Hi Community! We're thrilled to share that Team Calendars for Confluence is now a built-in feature for Confluence Data Center releases 7.11 and beyond.  A long time favorite,  Team Cale...

146 views 0 5
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you