Show last authors
1 #set($sql = "select max(prop.value)+1 from BaseObject as obj, IntegerProperty as prop where obj.className='TasksCode.IssueClass' and obj.id=prop.id.id and prop.id.name='id'")
2 #set($id = $xwiki.search($sql).get(0))
3 #if(!$id)
4 #set($id = "1")
5 #end
6 #if($request.page)
7 #set($pagedoc = $xwiki.getDocument($!request.page))
8 $response.sendRedirect($xwiki.getURL("${pagedoc.space}.${pagedoc.name}Task${id}","inline","page=${request.page}&id=${id}&template=TasksCode.TasksClassTemplate"))
9 #else
10 $response.sendRedirect($xwiki.getURL("Tasks.Task${id}","inline","page=Tasks.WebHome&id=${id}&template=TasksCode.TasksClassTemplate"))
11 #end