It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Task Report Macro in homepage

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

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 

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?

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

0 votes

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>

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

8,532 views 6 6
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you