Taskmanager - Kanban

Hello,

I have a problem with the “Task Manager Application” and the kanboard.

I would like that when a user logs in, only the tasks assigned to him are displayed, which unfortunately does not work.

As code I have {{kanbanboard user=“TestBoy” space=“TaskManager”/}}

used. But it still shows me the ToDo and everything from each account.

The task manager code is

{{velocity}}
#set ($discard = $services.localization.use(‘document’, ‘TaskManager.TaskManagerTranslations’))
#set ($discard = $xwiki.ssfx.use(‘uicomponents/widgets/userpicker/userPicker.css’))
#set ($columnsProperties = {
‘number’: {“type”:“number”,“size”:10},
‘name’: {“type”:“text”,“size”:10, “link”:“view”},
‘project’: {“type”:“list”,“size”:10},
‘status’: {“type”:“list”,“size”:10,“html”:true},
‘severity’: {“type”:“list”,“size”:10,“html”:true},
‘reporter’: {“type”:“text”,“size”:10,“html”:true},
‘assignee’: {“type”:“text”,“size”:10,“html”:true},
‘duedate’: {“type”:“text”,“size”:10},
‘_actions’: {“sortable”:false,“filterable”:false,“html”:true,“actions”:[“edit”,“delete”]}
})
#set ($options = {
‘className’: ‘TaskManager.TaskManagerClass’,
‘resultPage’: ‘TaskManager.TaskManagerLiveTableResults’,
‘translationPrefix’: ‘taskmanager.livetable.’,
‘tagCloud’: true,
‘rowCount’: 15,
‘maxPages’: 10,
‘selectedColumn’: ‘name’,
‘defaultOrder’: ‘asc’
})
#set ($columns = [‘name’, ‘project’, ‘status’, ‘severity’, ‘reporter’, ‘assignee’, ‘duedate’, ‘_actions’])
livetable(‘taskmanager’ $columns $columnsProperties $options)
{{/velocity}}

I don’t understand the explanation:

How can you use it?
Simply, just by writing the following line in a page:

{{kanbanboard space=“TaskManager” /}}

Parameters:

  • user [optional, default=$xcontext.userReference] define the user for who tasks are assigned
  • space [optional, default=TaskManager] define the space to look for tasks
  • project [optional, default=] define the project to look for tasks

Can someone help me please

Thank you

I could reproduce your problem :+1:
I’m not sure how to solve it and I don’t know the project much.
I could not find a related issue yet on the project Jira though.

@slauriere might know more about it (I checked the Gitblame on the file that’s related to this macro) and whether you should raise an issue on the Task Manager Jira.

Have a good day,

Lucas C.

1 Like

Hi Stefan, Lucas,

TestBoy does not look like a valid serialized reference, have you tried with XWiki.TestBoy as well? It could be interesting to give a try to the plain generic Kanban macro as well, which is used by the TaskManager kanban macro, to understand at which level there’s an issue.

Cheers

1 Like

Thank you very much

it works with user=“XWiki.TestBoy”

1 Like

That’s it! I can get it working when adding XWiki. :+1:

I’ll update the doc of the macro to avoid more people running in a similar issue :slight_smile:

2 Likes