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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
NM I got it to work I, thanks again!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Glad to hear. Being able to wrap the existing macro in a user macro to dynamically change the parameters is super useful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.