Hi there,
I'm building a dashboard in Confluence server v5.6.3.
On this dashboard, I want to include the Task Report macro.. but filter it by current user. I can't figure out how to set the filter to "current user"
Here's the macro code. I just need something to add in the ri:user parameter. Any advice would be great.
<ac:structured-macro ac:name="tasks-report-macro"> <ac:parameter ac:name="assignees"> <ri:user ri:userkey="ff808081469286e8014692b694df0054"/> </ac:parameter> </ac:structured-macro>
Community moderators have prevented the ability to post new answers.
You could create a user macro that wraps the task-report-macro and autofills that parameter.
Thanks... how can I get the current user's ID though? I'm a total newb at this stuff.. I think that I need to write something that sets the user parameter to match a variable set by the user macro... which I can handle. I just don't konw how to grab the current user's ID.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Username: $action.remoteUser.name ID: $action.remoteUser.key So something like this should work... <ac:structured-macro ac:name="tasks-report-macro"> <ac:parameter ac:name="assignees"> <ri:user ri:userkey="$action.remoteUser.key"/> </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.
You also need to tell it that you don't need to fill out parameters for the user macro. So, the full template would look like this...
## @noparams <ac:structured-macro ac:name="tasks-report-macro"> <ac:parameter ac:name="assignees"> <ri:user ri:userkey="$action.remoteUser.key"/> </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.
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.
You could use the Table Filter Macro:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You might want to restrict the number of tasks displayed and show some pageing option. For use on a dashboard only some colums are useful, so I pimped the macro with some params:
## Macro title: mytasks ## Macro has a body: N ## @noparams <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">10</ac:parameter> <ac:parameter ac:name="columns">description,location</ac:parameter> </ac:structured-macro>
One could make these params configurable, I kept it easy for our users. It's up to you...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This does not work with Cloud version.
Having a report of the tasks assigned to the current user is basic functionality.
Without it and without synch between tasks in confluence and external systems the whole tasks functionality is almost useless.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can see your own tasks on your profile page. The url would be ...
http://{yourserver}/plugins/inlinetasks/mytasks.action
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This also seems to be an appropriate workaround from David Studer & Greg MacLellan on CONF-34597
## @noparams <ac:structured-macro ac:name="tasks-report-macro"> <ac:parameter ac:name="assignees"> <ri:user ri:userkey="$action.getAuthenticatedUser().key"/> </ac:parameter> <ac:parameter ac:name="columns">description,duedate,location</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.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.