Wiki source code of IssueClassSheet

Last modified by XWikiGuest on 2011/10/19 15:23

Hide last authors
Eugen Colesnicov 1.1 1 <style>
2 #includeInContext("TasksCode.Skin")
3 </style>
4
5 $doc.use("TasksCode.IssueClass")
6 #if($doc.isNew())
7 #set($id = $request.id)
8 $doc.set("id", $id)
9 $doc.set("status", "new")
10 $doc.set("resolution", "none")
11 $doc.set("severity", "major")
12 $doc.set("reporter", $context.localUser)
13 $doc.set("assignee", $context.localUser)
14 $doc.set("page", $request.page)
15 #else
16 #set($id = $doc.display("id", "view"))
17 #end
18 #set($pagedoc = $xwiki.getDocument($doc.getValue("page")))
19 1 $msg.its_task $id #if($doc.getValue("page")!="") $msg.its_task_onpage [$pagedoc.displayTitle>$pagedoc.fullName] #end
20
21 $doc.display("page", "hidden")
22
23 <div class="box" id="task">
24
25 1.1 $msg.its_task $doc.display("id") - $doc.display("title")
26
27 * $msg.its_task_status : $doc.display("status")
28
29 * $msg.its_task_resolution : $doc.display("resolution")
30
31 * $msg.its_task_reporter : $doc.display("reporter")
32
33 * $msg.its_task_assignee : $doc.display("assignee")
34
35 * $msg.its_task_dueDate : $doc.display("dueDate")
36
37 * $msg.its_task_severity : $doc.display("severity")
38
39 <fieldset>
40 <legend class="fieldset">$msg.its_task_description</legend>
41
42 $doc.display("description")
43 </fieldset>
44
45 #if($context.action!="inline")
46 <fieldset>
47 <legend class="fieldset">$msg.comments</legend>
48 {pre}
49 #template("commentsinline.vm")
50 {/pre}
51 </fieldset>
52 ##
53 <fieldset>
54 <legend class="fieldset">$msg.attachments</legend>
55
56 #template("attachmentsinline.vm")
57 </fieldset>
58 #end
59 ## end action inline
60
61 </div>
62
63 #set($taskgroup = $doc.getValue("taskgroup"))
64 #if($taskgroup=="1")
65 <div class="box" id="activesubtasks">
66 1.1 $msg.its_taskgroup_activesubtasks
67
68 #foreach($taskDocName in $xwiki.searchDocuments(",BaseObject as obj, StringProperty as prop, StringProperty as statusprop where doc.fullName=obj.name and obj.className='TasksCode.IssueClass' and obj.id=prop.id.id and prop.id.name='page' and prop.value='${doc.fullName}' and obj.id=statusprop.id.id and statusprop.id.name='status' and statusprop.value in ('new','open','reopened') order by doc.date desc"))
69 #set($taskdoc = $xwiki.getDocument($taskDocName))
70 #set($ok = $taskdoc.use("TasksCode.IssueClass"))
71 <div style="margin: 5px;">
72 <span style="font-size: 1.2em;">[$msg.its_task $taskdoc.display("id","view")>$taskDocName] - [$taskdoc.display("title","view")>$taskDocName]</span>
73 * $msg.its_task_status : $taskdoc.display("status","view")
74 * $msg.its_task_assignee : $xwiki.getLocalUserName($taskdoc.display("assignee","view"))
75 </div>
76 #end
77 </div>
78 <div class="box" id="inactiveactivesubtasks">
79 1.1 $msg.its_taskgroup_inactivesubtasks
80
81 #foreach($taskDocName in $xwiki.searchDocuments(",BaseObject as obj, StringProperty as prop, StringProperty as statusprop where doc.fullName=obj.name and obj.className='TasksCode.IssueClass' and obj.id=prop.id.id and prop.id.name='page' and prop.value='${doc.fullName}' and obj.id=statusprop.id.id and statusprop.id.name='status' and statusprop.value not in ('new','open','reopened') order by doc.date desc"))
82 #set($taskdoc = $xwiki.getDocument($taskDocName))
83 #set($ok = $taskdoc.use("TasksCode.IssueClass"))
84 <div style="margin: 5px;">
85 <span style="font-size: 1.2em;">[$msg.its_task $taskdoc.display("id","view")>$taskDocName] - [$taskdoc.display("title","view")>$taskDocName]</span>
86 * $msg.its_task_status : $taskdoc.display("status","view")
87 * $msg.its_task_assignee : $xwiki.getLocalUserName($taskdoc.display("assignee","view"))
88 </div>
89 #end
90 </div>
91 #end
92
93 #set($showcomments = "no")
94 #set($showattachments = "no")