confluence task list macro display assigned tasks

We really like the Macro for displaying task lists, but I have a large user base and was wondering if there was a way to make the tasklist display only tasks that have an assignee.  We want to display all assigned tasks for a space.  There is an assignee filter, but to get all assigned tasks I would have to add all 450 or so users to that list, which is not practical.  

If the source code is available some where is sounds like an easy enough change to add if assignee != EMPTY then display the task.

1 answer

1 accepted

2 votes
Answer accepted
Davin Studer Community Champion Nov 12, 2014

Not sure how performant this would be but you could create a user macro that acts as a wrapper for the task report macro and will dynamically add in all of your users as assignees. I haven't tried it, so I'm not sure how fast or taxing on the server it would be, but it might be worth a test.

Interesting idea. Any thoughts on how to add in all the users? Do I create an array all the users? Of course then that would have to be maintained as well (every time a new employee is hired we have to change the macro), unless there is a way to automatically feed all the users in.

Davin Studer Community Champion Nov 12, 2014

Like I said this might be slow but this user macro should do what you are wanting. ## @noparams <ac:structured-macro ac:name="tasks-report-macro"> <ac:parameter ac:name="assignees"> #foreach( $user in $userAccessor.getUserNamesWithConfluenceAccess() ) <ri:user ri:userkey="$userAccessor.getUser($user).key"/> #end </ac:parameter> </ac:structured-macro>

Works great, except now I just need to add back in all the parameters from the original macro as it defaults to no params. I should be able to do that. It is reasonably fast, but I will keep an eye on it...

NM I got it to work I, thanks again!

Davin Studer Community Champion Nov 13, 2014

Glad to hear. Being able to wrap the existing macro in a user macro to dynamically change the parameters is super useful.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

272 views 2 10
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you