I have created a macro name as "My Task" in Confluence.
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?
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:
- [Atlassian Community] How to link to Space home in User Macro?
- [Atlassian Community] Retrieving list of users in group macro
- [Atlassian Community] Get Space Name from Space Key
- [Confluence Server Developer] Confluence objects accessible from Velocity
- [Confluence Server Developer] Velocity template overview
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:parameter ac:name="assignees"><ri:user ri:userkey="$action.remoteUser.key"/></ac:parameter>
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...
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