Forums

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

Task Report Macro in homepage

Mariana Aires
Contributor
March 3, 2020

I made a custom macro that filters the task report macro by current user. I wanted to use it on our Confluence Dashboard so I added it into the .vm file. The macro works but the task part appears weirdly formatted.

image.png

It's supposed to look like:

image.png

Any ideas how to solve this?

2 answers

0 votes
JP _AC Bielefeld Leader_
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.
March 3, 2020

Hi,

as an example our current user tasks user macro:

## Macro title: My Tasks
## Macro has a body: N
##
## @param PageSize:title=Size|type=int|desc=Size of displayed tasks|default=5
<ac:structured-macro ac:name="tasks-report-macro">
<ac:parameter ac:name="assignees">
<ri:user ri:userkey="$action.remoteUser.key"/>
</ac:parameter>
<ac:parameter ac:name="pageSize">$paramPageSize</ac:parameter>
<ac:parameter ac:name="columns">description,location</ac:parameter>
</ac:structured-macro>
0 votes
JP _AC Bielefeld Leader_
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.
March 3, 2020

Hi,

does it work on a default page outside the dashboard? My guess is that some CSS rules are not available in the dashboard.

How does the default task report macro look inside the dashboard (HTML)?

Did you use the Confluence storage editor to get a look at the storage format?

Best

JP 

Mariana Aires
Contributor
March 4, 2020

It works on any page outside the dashboard, and looks just like the task report. The default task report macro can't be added to the dashboard since it has no wiki markup way to do it. So maybe the problem is coming from there?

JP _AC Bielefeld Leader_
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.
March 4, 2020

Yes, this could be the problem.

We decided to move away from the default Confluence dashboard & use the Custom Dashboards for Confluence addon to control what "Homepages" are shown to our users. This can be done on an individual user base or by groups with a priority control.

I just checked my macro (see below) in a default global dashboard: It works, alas the font size is a bit to large.

Best

JP

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events