Filter task report by assigned to confluence team
Asked by Kajsa:

It's great to be able to have tasks show up in a task report, and even better to be able to filter them so only the ones that are assigned to you show up.

But say you have a project page, and a confluence team has been set up for the project. Now I would like to add a task report to to the project page and filter the task show to the ones that have been assigned to the team using \`@teamName\`. At present the team doesn't come up as an option when I start typing the name in the \`Assignee\` field in the macro.

Is this possible? Is it a coming feature? Or is there a way to achieve this?


Answers:
author: Kris G _Alacriz_
body: Hi [@Kajsa](/t5/user/viewprofilepage/user-id/3541685) -

Though you can @mention teams in Confluence, you cannot use teams as a parameter in the Task Report macro. There is no suggestion or improvement request with Atlassian either.

So, you can suggest the feature to Atlassian by going to [https://jira.atlassian.com/secure/Dashboard.jspa.](https://jira.atlassian.com/secure/Dashboard.jspa.?)

Thanks,  
Kris

comments: author: Kajsa
body: Thanks Kris!  

Should anyone find their way here in search of this same feature, here is a link to the request.  
<https://jira.atlassian.com/browse/CONFCLOUD-71032>


author: Katerina Kovriga {Stiltsoft}
body: Hi [@Kajsa](/t5/user/viewprofilepage/user-id/3541685) ,

We can suggest a workaround with the help of the [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=cloud&tab=overview) app.

Wrap your Task Report in the [Table Toolbox](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Toolbox+macro) macro and create the following nesting: Task Report \<- [Table Transformer](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Transformer+macro) \<- [Table Filter](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Table+Filter+macro) macro.

![Wed 1-1.png](https://community.atlassian.com/t5/image/serverpage/image-id/116041i811F485B1779C104/image-size/large?v=v2&px=999 "Wed 1-1.png")Go to the Table Transformer macro and create a custom SQL query:

![Wed 1-2.png](https://community.atlassian.com/t5/image/serverpage/image-id/116042i3D93502B0933DBCA/image-size/large?v=v2&px=999 "Wed 1-2.png")SELECT \*,  
CASE  
WHEN T1.'Assignee' LIKE "Katerina Kovriga"  
THEN "HR"  
WHEN T1.'Assignee' LIKE "Natalie Paramonova"  
THEN "Sales"  
END  
AS 'Team'  
FROM T1

![Wed 1-3.png](https://community.atlassian.com/t5/image/serverpage/image-id/116043i69C797E992F5DA10/image-size/large?v=v2&px=999 "Wed 1-3.png")

As you can see from this example, we put our assignees to the corresponding teams. Now we can filter our tasks not only by assignees, but by their teams as well.

Just go to the Table Filter macro and set the dropdown filter for the required Team column.

![Wed 1-4.png](https://community.atlassian.com/t5/image/serverpage/image-id/116044iC45BF200E85CC6B1/image-size/large?v=v2&px=999 "Wed 1-4.png")

Here is your result table in the view page mode:

![Wed 1-5.png](https://community.atlassian.com/t5/image/serverpage/image-id/116045i29D7B2C7DEB07247/image-size/large?v=v2&px=999 "Wed 1-5.png")![Wed 1-6.png](https://community.atlassian.com/t5/image/serverpage/image-id/116046iA0330099D0D10382/image-size/large?v=v2&px=999 "Wed 1-6.png")Note that our example is a simple one just to show the case. You can modify this SQL query and have as many teams and teammates as you need in real life.


Tags: cloud

confluence-cloud