Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #set($path=$request.getRequestURI().split("/"))
- #set($lst_path=[])
- #foreach($p in $path)
- #set($void=$lst_path.add($p))
- #end
- #set($mode=$lst_path.get(4))
- #set($scope=$lst_path.get(5))
- #if($scope.equals("page"))
- #set($scope="GLOBAL")
- #set($location="")
- #set($projectGroup=$trackerService.projectsService.rootProjectGroup.containedGroups.get(0))
- #end
- #if($scope.equals("project"))
- #set($scope="PROJECT")
- #end
- #if($scope.equals("group"))
- #set($scope="PROJECT GROUP")
- #set($bln_page_hit=false)
- #set($location="")
- #foreach($i in [6..$lst_path.size()])
- #if($i<$lst_path.size() && !$lst_path.get($i).equals(""))
- #if(!$bln_page_hit)
- #if ($lst_path.get($i).equals("page"))
- #set($bln_page_hit=true)
- #else
- #set($uripart=$lst_path.get($i).replace("%20"," "))
- #set($location="$location//$uripart")
- #end
- #end
- #end
- #end
- #if(!$location.equals(""))
- #set($location=$location.substring(2))
- #end
- #set($loc=$trackerService.projectsService.rootProjectGroup.containedGroups.get(0).location)
- #set($loc=$loc.append($location))
- #set($projectGroup=$trackerService.projectsService.getProjectGroupAtLocation($loc))
- #set($parentGroup=$projectGroup.parentProjectGroup)
- #end
- #if($scope.equals("GLOBAL") || !$projectGroup.name.equals("SFB"))
- ############################################## HEADER #####################################################
- #set($root="<a href=/polarion/#/home target=_top>CNHi Home</a> >> ")
- #set($path=$root.concat("Default Space >> Home"))
- {image:header.bmp|width=100%}
- <table width="99%"><tr><td width="20%"></td><td width="60%">
- <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>
- #############################################################################################################
- 1 Home Page
- {section: width=100%}
- {column:width=70%}
- 1.1 With Polarion you can manage
- <table style="align:middle;"><tr >
- <td width="40%">
- 1.1.1.1 <img src="/polarion/icons/default/topicIcons/document.png"/> Requirement and test documents
- 1.1.1.1 <img src="/polarion/icons/default/topicIcons/testruns.png" /> Test execution
- 1.1.1.1 <img src="/polarion/icons/default/topicIcons/Arrows_05-shuffle.png" /> Change management
- 1.1.1.1 <img src="/polarion/icons/default/topicIcons/App_97-puzzle-piece.png" /> Software development
- 1.1.1.1 <img src="/polarion/icons/default/topicIcons/Animals_110-bug.png" /> Bug tracking
- 1.1.1.1 <img src="/polarion/icons/default/topicIcons/App_11-clock.png" /> Project activities
- </td>
- <td width="35%">\\{image:polarion_alm.png}</td>
- </tr></table>
- {column}
- {column}
- {regiontitle}News{regiontitle}
- {announcements}
- {regiontitle}Common Projects{regiontitle}
- * {project: HowTo| label= How To / FAQ}: project with guide and tips to use Polarion\\
- * {project: DocumentTemplates| label= Document Templates}: project with tempaltes ready to reuse to start new documents.\\
- * {project: NewRequests| label= New Requests}: project where to open new requests to Polarion administrations\\
- * Standards & Norms: project with all standards and norms of CNH Industrial (available soon)
- {regiontitle}Contacts{regiontitle}
- 1.1.1.1 Process Leads
- {users:@all|roles=Process_Lead|fields=name,email}
- {column}
- {section}
- #else
- ##Current Scope: $scope \\
- #if(!$scope.equals("GLOBAL"))
- ##ParentGroup:
- ##<a href="/polarion/#/group$parentGroup.location.locationPath.replace("/","//").substring(1)" target="_top">$parentGroup.name</a> \\
- #end
- #set($groupPath="/")
- #set($groupPath=$groupPath.concat($parentGroup.getParentProjectGroup().getName()))
- #set($groupPath=$groupPath.concat("/"))
- #set($groupPath=$groupPath.concat($parentGroup.name))
- #set($groupPath=$groupPath.concat("/"))
- #set($groupPath=$groupPath.concat($projectGroup.name))
- ##Groups:\\
- #foreach($pg in $projectGroup.containedGroups)
- #set($path="$pg.name")
- #if(!$location.equals(""))
- #set($path="$location//$pg.name/")
- #end
- ##* <a href="/polarion/#/group/$path" target="_top">$pg.name</a>
- #end
- ##Projects:\\
- #set($queryProject="project.id:(")
- #foreach($p in $projectGroup.getDeepContainedProjects())
- ##* [$p.id/]
- #set($queryProject=$queryProject.concat($p.id))
- #set($queryProject=$queryProject.concat(" "))
- #end
- #set($queryProject=$queryProject.concat(")"))
- {pre}
- <script src="/polarion/emerasoft/jquery.js" type="text/javascript"></script>
- <script src="/polarion/emerasoft/changeProjectLead.js" type="text/javascript"></script>
- <script src="/polarion/emerasoft/chosen.jquery.js"></script>
- {/pre}
- <link rel="stylesheet" type="text/css" href="/polarion/emerasoft/chosen.css">
- ############################################## HEADER #####################################################
- #set($root="<a href=/polarion/#/home target=_top>CNHi Home</a> >> ")
- #set($path=$root.concat("Common >> EE_Component >> SFB"))
- {image:header.bmp|width=100%}
- <table width="99%"><tr><td width="20%"></td><td width="60%">
- <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>
- #############################################################################################################{includeForm:/_default.macros}
- \\
- 1 Project Group ~~$groupPath~~
- {section:width=100%}
- {column:width=50%}
- 1.1 Search Ticket
- #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")
- {parameter:param1|type=string|value=<Search>}
- {parameter-form}
- {parameter-editor:param1|width=400}
- {parameter-form-submit}
- {parameter-form}
- {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}
- 1.1 Tickets by Status
- <table width="75%">
- <tr>
- <td>
- #chartStart("" "Pie2D" 250 250 "decimalPrecision='0' showValues='0' pieBorderThickness='1' animation='0' showShadow='0' ")
- #set($colors = ["ff0000","00ff00"])
- #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"))
- #addSet("Resolved" $trackerService.dataService.getInstancesCount("WorkItem", "(status:closed OR status:rejected OR status:postponed OR status:verifiedfail) AND $queryProject AND type:ticket"))
- #chartEnd()
- </div>
- </td>
- <td>
- {table:header=no}
- *All Tickets*|{workitems: type:ticket|group=$groupPath|display=count}
- New | {workitems: status:new AND type:ticket|group=$groupPath|display=count}
- Assigned |{workitems: status:assigned AND type:ticket|group=$groupPath|display=count}
- Requirements Defined |{workitems: status:reqdefined AND type:ticket|group=$groupPath|display=count}
- Implemented | {workitems: status:implemented AND type:ticket|group=$groupPath|display=count}
- In A Build |{workitems: status:inabuild AND type:ticket|group=$groupPath|display=count}
- Integrated Test Build |{workitems: status:integtestbuild AND type:ticket|group=$groupPath|display=count}
- Verified - Pass |{workitems: status:verifiedpass AND type:ticket|group=$groupPath|display=count}
- Verified - Failed |{workitems: status:verifiedfail AND type:ticket|group=$groupPath|display=count}
- Closed |{workitems: status:closed AND type:ticket|group=$groupPath|display=count}
- Rejected |{workitems: status:rejected AND type:ticket|group=$groupPath|display=count}
- Postponed |{workitems: status:postponed AND type:ticket|group=$groupPath|display=count}
- {table}
- </td>
- </tr>
- </table>
- <table>
- <tr>
- <td>
- {regiontitle}Top 5 Most Recent Ticket{regiontitle}
- {workitems:type:ticket|fields=id,title,status as image-text, created|top=5|sortby=~created|group=$groupPath}
- </td>
- <td>
- {regiontitle}Top 5 Most Severe Ticket{regiontitle}
- {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}
- </td>
- </tr>
- </table>
- {column}
- {column:width=50%}
- <!-- Submitted by me -->
- 1.1 Tickets that I have submitted
- {workitems:type:ticket AND author.id:$me|top=10|sortby=created|group=$groupPath}
- 1.1 Tasks assigned to me
- {workitems:type:task_test_req AND assignee.id:$me AND (status:open OR status:inprogress)|sortby=severity|group=$groupPath}
- 1.1 Tickets assigned to me
- {workitems:type:ticket AND assignee.id:$me AND status:assigned|sortby=severity|group=$groupPath}
- 1.1 Quality report
- #set($issuesFound=$trackerService.queryWorkItems("$queryProject AND type:defect","id"))
- #set($issuesClosed=$trackerService.queryWorkItems("$queryProject AND type:defect","id"))
- #set($issuesOpen=$trackerService.queryWorkItems("$queryProject AND type:defect","id"))
- {table:header=no|width=50%}
- #scoreEntry("Issues founded in this project" "type:defect AND $queryProject" "type_bug.gif")
- #scoreEntry("Issues closed" "type:defect AND $queryProject AND HAS_VALUE:resolution" "req_status_approved.gif")
- #scoreEntry("Issues already open" "type:defect AND $queryProject AND NOT HAS_VALUE:resolution" "build_CANCELLED.png")
- {table}
- {column}
- {section}
- {includeForm:/_default.footer}
- #end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement