Forums

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

confluence task list macro display assigned tasks

Paul DeSousa
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 12, 2014

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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 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.

Paul DeSousa
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 12, 2014

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
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 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>

Paul DeSousa
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 12, 2014

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...

Paul DeSousa
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 13, 2014

NM I got it to work I, thanks again!

Davin Studer
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 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
TAGS
AUG Leaders

Atlassian Community Events