Advertisement
Guest User

home page

a guest
Nov 26th, 2015
855
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.17 KB | None | 0 0
  1. #set($path=$request.getRequestURI().split("/"))
  2. #set($lst_path=[])
  3. #foreach($p in $path)
  4. #set($void=$lst_path.add($p))
  5. #end
  6. #set($mode=$lst_path.get(4))
  7. #set($scope=$lst_path.get(5))
  8. #if($scope.equals("page"))
  9. #set($scope="GLOBAL")
  10. #set($location="")
  11. #set($projectGroup=$trackerService.projectsService.rootProjectGroup.containedGroups.get(0))
  12. #end
  13. #if($scope.equals("project"))
  14. #set($scope="PROJECT")
  15. #end
  16. #if($scope.equals("group"))
  17. #set($scope="PROJECT GROUP")
  18. #set($bln_page_hit=false)
  19. #set($location="")
  20. #foreach($i in [6..$lst_path.size()])
  21. #if($i<$lst_path.size() && !$lst_path.get($i).equals(""))
  22. #if(!$bln_page_hit)
  23. #if ($lst_path.get($i).equals("page"))
  24. #set($bln_page_hit=true)
  25. #else
  26. #set($uripart=$lst_path.get($i).replace("%20"," "))
  27. #set($location="$location//$uripart")
  28. #end
  29. #end
  30. #end
  31. #end
  32. #if(!$location.equals(""))
  33. #set($location=$location.substring(2))
  34. #end
  35. #set($loc=$trackerService.projectsService.rootProjectGroup.containedGroups.get(0).location)
  36. #set($loc=$loc.append($location))
  37. #set($projectGroup=$trackerService.projectsService.getProjectGroupAtLocation($loc))
  38. #set($parentGroup=$projectGroup.parentProjectGroup)
  39. #end
  40. #if($scope.equals("GLOBAL") || !$projectGroup.name.equals("SFB"))
  41.  
  42. ############################################## HEADER #####################################################
  43. #set($root="<a href=/polarion/#/home target=_top>CNHi Home</a> >> ")
  44. #set($path=$root.concat("Default Space >> Home"))
  45.  
  46. {image:header.bmp|width=100%}
  47. <table width="99%"><tr><td width="20%"></td><td width="60%">
  48. <center><i> $path </i></center></td><td width="19%" style="text-align:right;"><a href="/polarion/help/index.jsp" target="_blank">Help</a> | <a href="/polarion/#/project/HowTo" target="_blank">Guides</a> | <a href="/polarion/#/project/NewRequests" target="_blank">New Requests</a></td></tr></table>
  49.  
  50. #############################################################################################################
  51.  
  52. 1 Home Page
  53.  
  54.  
  55. {section: width=100%}
  56.  
  57. {column:width=70%}
  58. 1.1 With Polarion you can manage
  59. <table style="align:middle;"><tr >
  60. <td width="40%">
  61. 1.1.1.1 <img src="/polarion/icons/default/topicIcons/document.png"/>&nbsp;&nbsp;&nbsp;Requirement and test documents
  62. 1.1.1.1 <img src="/polarion/icons/default/topicIcons/testruns.png" />&nbsp;&nbsp;&nbsp;Test execution
  63. 1.1.1.1 <img src="/polarion/icons/default/topicIcons/Arrows_05-shuffle.png" />&nbsp;&nbsp;&nbsp;Change management
  64. 1.1.1.1 <img src="/polarion/icons/default/topicIcons/App_97-puzzle-piece.png" />&nbsp;&nbsp;&nbsp;Software development
  65. 1.1.1.1 <img src="/polarion/icons/default/topicIcons/Animals_110-bug.png" />&nbsp;&nbsp;&nbsp;Bug tracking
  66. 1.1.1.1 <img src="/polarion/icons/default/topicIcons/App_11-clock.png" />&nbsp;&nbsp;&nbsp;Project activities
  67. </td>
  68. <td width="35%">\\{image:polarion_alm.png}</td>
  69. </tr></table>
  70.  
  71. {column}
  72. {column}
  73.  
  74. {regiontitle}News{regiontitle}
  75. {announcements}
  76.  
  77. {regiontitle}Common Projects{regiontitle}
  78. * {project: HowTo| label= How To / FAQ}: project with guide and tips to use Polarion\\
  79. * {project: DocumentTemplates| label= Document Templates}: project with tempaltes ready to reuse to start new documents.\\
  80. * {project: NewRequests| label= New Requests}: project where to open new requests to Polarion administrations\\
  81. * Standards & Norms: project with all standards and norms of CNH Industrial (available soon)
  82.  
  83. {regiontitle}Contacts{regiontitle}
  84. 1.1.1.1 Process Leads
  85. {users:@all|roles=Process_Lead|fields=name,email}
  86.  
  87. {column}
  88. {section}
  89.  
  90.  
  91. #else
  92.  
  93. ##Current Scope: $scope \\
  94. #if(!$scope.equals("GLOBAL"))
  95. ##ParentGroup:
  96. ##<a href="/polarion/#/group$parentGroup.location.locationPath.replace("/","//").substring(1)" target="_top">$parentGroup.name</a> \\
  97. #end
  98.  
  99. #set($groupPath="/")
  100. #set($groupPath=$groupPath.concat($parentGroup.getParentProjectGroup().getName()))
  101. #set($groupPath=$groupPath.concat("/"))
  102. #set($groupPath=$groupPath.concat($parentGroup.name))
  103. #set($groupPath=$groupPath.concat("/"))
  104. #set($groupPath=$groupPath.concat($projectGroup.name))
  105.  
  106. ##Groups:\\
  107. #foreach($pg in $projectGroup.containedGroups)
  108. #set($path="$pg.name")
  109. #if(!$location.equals(""))
  110. #set($path="$location//$pg.name/")
  111. #end
  112. ##* <a href="/polarion/#/group/$path" target="_top">$pg.name</a>
  113. #end
  114.  
  115. ##Projects:\\
  116. #set($queryProject="project.id:(")
  117. #foreach($p in $projectGroup.getDeepContainedProjects())
  118. ##* [$p.id/]
  119. #set($queryProject=$queryProject.concat($p.id))
  120. #set($queryProject=$queryProject.concat(" "))
  121. #end
  122. #set($queryProject=$queryProject.concat(")"))
  123.  
  124. {pre}
  125. <script src="/polarion/emerasoft/jquery.js" type="text/javascript"></script>
  126. <script src="/polarion/emerasoft/changeProjectLead.js" type="text/javascript"></script>
  127. <script src="/polarion/emerasoft/chosen.jquery.js"></script>
  128. {/pre}
  129. <link rel="stylesheet" type="text/css" href="/polarion/emerasoft/chosen.css">
  130.  
  131. ############################################## HEADER #####################################################
  132. #set($root="<a href=/polarion/#/home target=_top>CNHi Home</a> >> ")
  133. #set($path=$root.concat("Common >> EE_Component >> SFB"))
  134.  
  135. {image:header.bmp|width=100%}
  136. <table width="99%"><tr><td width="20%"></td><td width="60%">
  137. <center><i> $path </i></center></td><td width="19%" style="text-align:right;"><a href="/polarion/help/index.jsp" target="_blank">Help</a> | <a href="/polarion/#/project/HowTo" target="_blank">Guides</a> | <a href="/polarion/#/project/NewRequests" target="_blank">New Requests</a></td></tr></table>
  138.  
  139. #############################################################################################################{includeForm:/_default.macros}
  140.  
  141. \\
  142. 1 Project Group ~~$groupPath~~
  143.  
  144. {section:width=100%}
  145. {column:width=50%}
  146. 1.1 Search Ticket
  147.  
  148. #message("Before creating a new ticket, please use the search function to locate tickets with a similar topic.\\Enter Ticket Search Text and press Apply Button")
  149.  
  150. {parameter:param1|type=string|value=<Search>}
  151. {parameter-form}
  152. &nbsp;&nbsp;{parameter-editor:param1|width=400}
  153. {parameter-form-submit}
  154. {parameter-form}
  155.  
  156.  
  157. {workitems:type:ticket AND (title:$pageParameters.getAsString("param1") OR description:$pageParameters.getAsString("param1") OR StepsToReproduce:$pageParameters.getAsString("param1") OR ImpactDetails:$pageParameters.getAsString("param1")) |top=5|group=$groupPath}
  158.  
  159. 1.1 Tickets by Status
  160.  
  161. <table width="75%">
  162. <tr>
  163. <td>
  164. #chartStart("" "Pie2D" 250 250 "decimalPrecision='0' showValues='0' pieBorderThickness='1' animation='0' showShadow='0' ")
  165. #set($colors = ["ff0000","00ff00"])
  166. #addSet("Unresolved" $trackerService.dataService.getInstancesCount("WorkItem", "(status:new OR status:assigned OR status:reqdefined OR status:implemented OR status:inabuild OR status:integtestbuild) AND $queryProject AND type:ticket"))
  167. #addSet("Resolved" $trackerService.dataService.getInstancesCount("WorkItem", "(status:closed OR status:rejected OR status:postponed OR status:verifiedfail) AND $queryProject AND type:ticket"))
  168. #chartEnd()
  169. </div>
  170. </td>
  171. <td>
  172. {table:header=no}
  173. *All Tickets*|{workitems: type:ticket|group=$groupPath|display=count}
  174. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; New | {workitems: status:new AND type:ticket|group=$groupPath|display=count}
  175. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Assigned |{workitems: status:assigned AND type:ticket|group=$groupPath|display=count}
  176. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Requirements Defined |{workitems: status:reqdefined AND type:ticket|group=$groupPath|display=count}
  177. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Implemented | {workitems: status:implemented AND type:ticket|group=$groupPath|display=count}
  178. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; In A Build |{workitems: status:inabuild AND type:ticket|group=$groupPath|display=count}
  179. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Integrated Test Build |{workitems: status:integtestbuild AND type:ticket|group=$groupPath|display=count}
  180. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Verified - Pass |{workitems: status:verifiedpass AND type:ticket|group=$groupPath|display=count}
  181. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Verified - Failed |{workitems: status:verifiedfail AND type:ticket|group=$groupPath|display=count}
  182. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Closed |{workitems: status:closed AND type:ticket|group=$groupPath|display=count}
  183. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Rejected |{workitems: status:rejected AND type:ticket|group=$groupPath|display=count}
  184. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Postponed |{workitems: status:postponed AND type:ticket|group=$groupPath|display=count}
  185. {table}
  186. </td>
  187. </tr>
  188. </table>
  189.  
  190.  
  191.  
  192. <table>
  193. <tr>
  194. <td>
  195. {regiontitle}Top 5 Most Recent Ticket{regiontitle}
  196. {workitems:type:ticket|fields=id,title,status as image-text, created|top=5|sortby=~created|group=$groupPath}
  197. </td>
  198. <td>
  199. {regiontitle}Top 5 Most Severe Ticket{regiontitle}
  200. {workitems:type:ticket AND NOT (status:closed OR status:verifiedfail OR status:rejected)|fields=id,title,status as image-text, severity as image-text|top=5|sortby=severity|group=$groupPath}
  201. </td>
  202. </tr>
  203. </table>
  204.  
  205. {column}
  206. {column:width=50%}
  207. <!-- Submitted by me -->
  208. 1.1 Tickets that I have submitted
  209. {workitems:type:ticket AND author.id:$me|top=10|sortby=created|group=$groupPath}
  210.  
  211. 1.1 Tasks assigned to me
  212. {workitems:type:task_test_req AND assignee.id:$me AND (status:open OR status:inprogress)|sortby=severity|group=$groupPath}
  213.  
  214. 1.1 Tickets assigned to me
  215. {workitems:type:ticket AND assignee.id:$me AND status:assigned|sortby=severity|group=$groupPath}
  216.  
  217.  
  218.  
  219. 1.1 Quality report
  220. #set($issuesFound=$trackerService.queryWorkItems("$queryProject AND type:defect","id"))
  221. #set($issuesClosed=$trackerService.queryWorkItems("$queryProject AND type:defect","id"))
  222. #set($issuesOpen=$trackerService.queryWorkItems("$queryProject AND type:defect","id"))
  223.  
  224. {table:header=no|width=50%}
  225. #scoreEntry("Issues founded in this project" "type:defect AND $queryProject" "type_bug.gif")
  226. #scoreEntry("Issues closed" "type:defect AND $queryProject AND HAS_VALUE:resolution" "req_status_approved.gif")
  227. #scoreEntry("Issues already open" "type:defect AND $queryProject AND NOT HAS_VALUE:resolution" "build_CANCELLED.png")
  228. {table}
  229.  
  230. {column}
  231. {section}
  232. {includeForm:/_default.footer}
  233.  
  234.  
  235. #end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement