result = ServiceUtil.returnError("A communication event id is required");
+ return result;
+ }
+ }
+
+ /**
+ * viewScrumRevision
+ *
+ * Use for view Scrum Revision
+ *
+ * @param revision Revision number
+ * @param repository Repository url
+ * @return Map with the result of the service, the output parameters.
+ */
+ public static Map viewScrumRevision(DispatchContext ctx, Map context) {
+ Delegator delegator = ctx.getDelegator();
+ LocalDispatcher dispatcher = ctx.getDispatcher();
+ String revision = (String) context.get("revision");
+ String repository = (String) context.get("repository");
+ Map result = ServiceUtil.returnSuccess();
+ String logMessage = "";
+ String diffMessage = "";
+ try {
+ if (UtilValidate.isNotEmpty(repository) && UtilValidate.isNotEmpty(revision)) {
+ String logline = null;
+ String logCommand = "svn log -r"+revision+" "+repository;
+ Process logProcess = Runtime.getRuntime().exec(logCommand);
+ BufferedReader logIn = new BufferedReader(new InputStreamReader(logProcess.getInputStream()));
+ while ((logline = logIn.readLine()) != null) {
+ logMessage += logline + "\n";
+ }
+ String diffline = null;
+ String diffCommand = "svn diff -r"+Integer.toString((Integer.parseInt(revision.trim()) - 1))+":"+revision+" "+repository;
+ Process diffProcess = Runtime.getRuntime().exec(diffCommand);
+ BufferedReader diffIn = new BufferedReader(new InputStreamReader(diffProcess.getInputStream()));
+ while ((diffline = diffIn.readLine()) != null) {
+ diffMessage += diffline + "\n";
+ }
+ }
+ result.put("revision", revision);
+ result.put("repository", repository);
+ result.put("logMessage", logMessage);
+ result.put("diffMessage", diffMessage);
+ } catch (IOException e) {
+ e.printStackTrace();
+ return ServiceUtil.returnError(e.getMessage());
+ }
+ return result;
+ }
+
+ /**
+ * retrieveMissingScrumRevision
+ *
+ * Use for retrieve the missing data of the Revision
+ *
+ * @param latestRevision The latest revision number
+ * @param repositoryRoot The repository root url
+ * @return Map with the result of the service, the output parameters.
+ */
+ public static Map retrieveMissingScrumRevision(DispatchContext ctx, Map context) {
+ Delegator delegator = ctx.getDelegator();
+ LocalDispatcher dispatcher = ctx.getDispatcher();
+ GenericValue userLogin = (GenericValue) context.get("userLogin");
+ String latestRevision = (String) context.get("latestRevision");
+ String repositoryRoot = (String) context.get("repositoryRoot");
+ Map result = ServiceUtil.returnSuccess();
+ try {
+ if (UtilValidate.isNotEmpty(repositoryRoot) && UtilValidate.isNotEmpty(latestRevision)) {
+ Integer revision = Integer.parseInt(latestRevision.trim());
+ for (int i = 1; i <= revision; i++) {
+ String logline = null;
+ List logMessageList = FastList.newInstance();
+ String logCommand = "svn log -r"+i+" "+repositoryRoot;
+ Process logProcess = Runtime.getRuntime().exec(logCommand);
+ BufferedReader logIn = new BufferedReader(new InputStreamReader(logProcess.getInputStream()));
+ while ((logline = logIn.readLine()) != null) {
+ logMessageList.add(logline.toString().trim());
+ }
+ if (UtilValidate.isNotEmpty(logMessageList)) {
+ String userInfo = logMessageList.get(1).replace(" | ", ",");
+ String taskInfo = logMessageList.get(3);
+ // get user information
+ String[] versionInfoTemp = userInfo.split(",");
+ String user = versionInfoTemp[1];
+ // get task information
+ String taskId = null;
+ char[] taskInfoList = taskInfo.toCharArray();
+ int count = 0;
+ for(int j = 0; j < taskInfoList.length;j++) {
+ if(Character.isDigit(taskInfoList[j])) {
+ count = count + 1;
+ } else {
+ count = 0;
+ }
+ if (count == 5) {
+ taskId = taskInfo.substring(j-4, j+1);
+ }
+ }
+ String revisionLink = repositoryRoot.substring(repositoryRoot.lastIndexOf("svn/") + 4, repositoryRoot.length()) + "&revision=" + i;
+ Debug.logInfo("Revision Link ============== >>>>>>>>>>> "+ revisionLink, module);
+ if (UtilValidate.isNotEmpty(taskId)) {
+ String version = "R" + i;
+ List workeffContentList = delegator.findByAnd("WorkEffortAndContentDataResource", UtilMisc.toMap("contentName",version.trim() ,"drObjectInfo", revisionLink.trim()));
+ List exprsAnd = FastList.newInstance();
+ exprsAnd.add(EntityCondition.makeCondition("workEffortId", EntityOperator.EQUALS, taskId));
+
+ List exprsOr = FastList.newInstance();
+ exprsOr.add(EntityCondition.makeCondition("workEffortTypeId", EntityOperator.EQUALS, "SCRUM_TASK_ERROR"));
+ exprsOr.add(EntityCondition.makeCondition("workEffortTypeId", EntityOperator.EQUALS, "SCRUM_TASK_TEST"));
+ exprsOr.add(EntityCondition.makeCondition("workEffortTypeId", EntityOperator.EQUALS, "SCRUM_TASK_IMPL"));
+ exprsOr.add(EntityCondition.makeCondition("workEffortTypeId", EntityOperator.EQUALS, "SCRUM_TASK_INST"));
+ exprsAnd.add(EntityCondition.makeCondition(exprsOr, EntityOperator.OR));
+
+ List workEffortList = delegator.findList("WorkEffort", EntityCondition.makeCondition(exprsAnd, EntityOperator.AND), null, null, null, false);
+ if (UtilValidate.isEmpty(workeffContentList) && UtilValidate.isNotEmpty(workEffortList)) {
+ Map inputMap = FastMap.newInstance();
+ inputMap.put("taskId", taskId);
+ inputMap.put("user", user);
+ inputMap.put("revisionNumber", Integer.toString(i));
+ inputMap.put("revisionLink", revisionLink);
+ inputMap.put("revisionDescription", taskInfo);
+ inputMap.put("userLogin", userLogin);
+ Debug.logInfo("inputMap ============== >>>>>>>>>>> "+ inputMap, module);
+ dispatcher.runSync("updateScrumRevision", inputMap);
+ }
+ }
+ }
+ }
+ }
+ } catch (IOException e) {
+ e.printStackTrace();
+ return ServiceUtil.returnError(e.getMessage());
+ } catch (GenericEntityException entityEx) {
+ entityEx.printStackTrace();
+ return ServiceUtil.returnError(entityEx.getMessage());
+ } catch (GenericServiceException serviceEx) {
+ serviceEx.printStackTrace();
+ return ServiceUtil.returnError(serviceEx.getMessage());
+ }
+
+ return result;
+ }
+
+ /**
+ * removeDuplicateScrumRevision
+ *
+ * Use for remove duplicate scrum revision
+ *
+ * @param repositoryRoot The repository root url
+ * @return Map with the result of the service.
+ */
+ public static Map removeDuplicateScrumRevision(DispatchContext ctx, Map context) {
+ Delegator delegator = ctx.getDelegator();
+ LocalDispatcher dispatcher = ctx.getDispatcher();
+ String repositoryRoot = (String) context.get("repositoryRoot");
+ Map result = ServiceUtil.returnSuccess();
+ try {
+ List exprsAnd = FastList.newInstance();
+ String revisionLink = repositoryRoot.substring(repositoryRoot.lastIndexOf("svn/") + 4, repositoryRoot.length()) + "&revision=";
+ exprsAnd.add(EntityCondition.makeCondition("workEffortContentTypeId", EntityOperator.EQUALS, "TASK_SUB_INFO"));
+ exprsAnd.add(EntityCondition.makeCondition("contentTypeId", EntityOperator.EQUALS, "DOCUMENT"));
+ exprsAnd.add(EntityCondition.makeCondition("drObjectInfo", EntityOperator.LIKE, revisionLink + "%"));
+ List workEffortDataResourceList = delegator.findList("WorkEffortAndContentDataResource", EntityCondition.makeCondition(exprsAnd, EntityOperator.AND), null, null, null, false);
+ if (UtilValidate.isNotEmpty(workEffortDataResourceList)) {
+ Debug.logInfo("Total Content Size ============== >>>>>>>>>>> "+ workEffortDataResourceList.size(), module);
+ Set keys = FastSet.newInstance();
+ Set exclusions = FastSet.newInstance();
+ for (GenericValue workEffort : workEffortDataResourceList) {
+ String drObjectInfo = workEffort.getString("drObjectInfo");
+ if (keys.contains(drObjectInfo)) {
+ exclusions.add(workEffort);
+ } else {
+ keys.add(drObjectInfo);
+ }
+ }
+ // remove the duplicate entry
+ Debug.logInfo("Remove size ============== >>>>>>>>>>> "+ exclusions.size(), module);
+ if (UtilValidate.isNotEmpty(exclusions)) {
+ for (GenericValue contentResourceMap : exclusions) {
+ Debug.logInfo("Remove contentId ============== >>>>>>>>>>> "+ contentResourceMap.getString("contentId"), module);
+ GenericValue dataResourceMap = delegator.findByPrimaryKey("DataResource", UtilMisc.toMap("dataResourceId", contentResourceMap.getString("dataResourceId")));
+ GenericValue contentMap = delegator.findByPrimaryKey("Content", UtilMisc.toMap("contentId", contentResourceMap.getString("contentId")));
+ contentMap.removeRelated("WorkEffortContent");
+ contentMap.removeRelated("ContentRole");
+ contentMap.remove();
+ dataResourceMap.removeRelated("DataResourceRole");
+ dataResourceMap.remove();
+ }
+ }
+ }
+ } catch (GenericEntityException entityEx) {
+ entityEx.printStackTrace();
+ return ServiceUtil.returnError(entityEx.getMessage());
+ }
+ return result;
+ }
+}
diff --git a/scrum/templates/AcceptedBacklogNotification.ftl b/scrum/templates/AcceptedBacklogNotification.ftl
new file mode 100644
index 000000000..934ffc3b1
--- /dev/null
+++ b/scrum/templates/AcceptedBacklogNotification.ftl
@@ -0,0 +1,39 @@
+<#--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+
+
+ ${title}
+
+
+ Hello ${person.firstName?if_exists} ${person.lastName?if_exists},
+ Your backlog: ${custRequest.description?if_exists} [${custRequest.custRequestId}]
+ <#if informationMap.workEffortId?has_content>
in sprint: ${informationMap.workEffortName?if_exists} [${informationMap.workEffortId?if_exists}]#if>
+ <#if informationMap.productId?has_content>
of the product: ${informationMap.internalName?if_exists} [${informationMap.productId?if_exists}]#if>
+ <#if removedFromSprint = true> has been removed from sprint. <#else> has been received.#if>
+
+
+ <#if custRequest.fromPartyId == partyIdTo>
+ The complete information of this backlog/request can be found here.....
+
+ #if>
+ Regards.
+ Thank you for your business.
+
+
diff --git a/scrum/templates/ActiveSprintNotification.ftl b/scrum/templates/ActiveSprintNotification.ftl
new file mode 100644
index 000000000..14c786caa
--- /dev/null
+++ b/scrum/templates/ActiveSprintNotification.ftl
@@ -0,0 +1,35 @@
+<#--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+
+
+ ${title}
+
+
+
Hello ${person.firstName?if_exists} ${person.lastName?if_exists},
+ Your Sprint ${sprint.workEffortName?if_exists} [${sprint.workEffortId?if_exists}] in project ${project.workEffortName?if_exists} [${project.workEffortId?if_exists}]
+ of the product ${prodcut.internalName?if_exists} [${prodcut.productId?if_exists}] has been started.
+
+
+ The complete information about this sprint can be found here.....
+
+ Regards.
+ Thank you for your business.
+
+
diff --git a/scrum/templates/CancelledBacklogNotification.ftl b/scrum/templates/CancelledBacklogNotification.ftl
new file mode 100644
index 000000000..c6980bca0
--- /dev/null
+++ b/scrum/templates/CancelledBacklogNotification.ftl
@@ -0,0 +1,22 @@
+
+
+
+
+ ${title}
+
+
+ Hello ${person.firstName?if_exists} ${person.lastName?if_exists},
+ Your Customer Request ${custRequest.custRequestName?if_exists} [${custRequest.custRequestId}] <#if informationMap.workEffortId?has_content>in sprint ${informationMap.workEffortName?if_exists} [${informationMap.workEffortId?if_exists}]#if>
+ <#if informationMap.productId?has_content>of the product ${informationMap.internalName?if_exists} [${informationMap.productId?if_exists}]#if> has been CANCELLED.
+
Your Reference: ${custRequest.requesterId?if_exists}
+ Reason for Cancellation: ${custRequest.reason?if_exists}
+
+
+ <#if custRequest.fromPartyId == partyIdTo>
+ The complete information about this request can be found here.....
+
+ #if>
+ Regards.
+ Thank you for your business.
+
+
diff --git a/scrum/templates/ClosedSprintNotification.ftl b/scrum/templates/ClosedSprintNotification.ftl
new file mode 100644
index 000000000..227111ad7
--- /dev/null
+++ b/scrum/templates/ClosedSprintNotification.ftl
@@ -0,0 +1,18 @@
+
+
+
+
+ ${title}
+
+
+ Hello ${person.firstName?if_exists} ${person.lastName?if_exists},
+ Your Sprint ${sprint.workEffortName?if_exists} [${sprint.workEffortId}] in the project ${project.workEffortName?if_exists} [${project.workEffortId?if_exists}]
+ of the product ${prodcut.internalName?if_exists} [${prodcut.productId?if_exists}] has been Closed.
+
+
+ The complete information about this sprint can be found here.....
+
+ Regards.
+ Thank you for your business.
+
+
\ No newline at end of file
diff --git a/scrum/templates/CompletedBacklogNotification.ftl b/scrum/templates/CompletedBacklogNotification.ftl
new file mode 100644
index 000000000..53fc360cf
--- /dev/null
+++ b/scrum/templates/CompletedBacklogNotification.ftl
@@ -0,0 +1,37 @@
+<#--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+
+
+ ${title}
+
+
+ Hello ${person.firstName?if_exists} ${person.lastName?if_exists},
+ Your backlog ${custRequest.description?if_exists} [${custRequest.custRequestId}] <#if informationMap.workEffortId?has_content>in sprint ${informationMap.workEffortName?if_exists} [${informationMap.workEffortId?if_exists}]#if>
+ <#if informationMap.productId?has_content>of the product ${informationMap.internalName?if_exists} [${informationMap.productId?if_exists}]#if> has been completed.
+
+
+ <#if custRequest.fromPartyId == partyIdTo>
+ The complete information about this sprint can be found here.....
+
+ #if>
+ Regards.
+ Thank you for your business.
+
+
diff --git a/scrum/templates/ReviewedBacklogNotification.ftl b/scrum/templates/ReviewedBacklogNotification.ftl
new file mode 100644
index 000000000..f8fdfd0cc
--- /dev/null
+++ b/scrum/templates/ReviewedBacklogNotification.ftl
@@ -0,0 +1,38 @@
+<#--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+
+
+ ${title}
+
+
+ Hello ${person.firstName?if_exists} ${person.lastName?if_exists},
+ Your backlog ${custRequest.description?if_exists} [${custRequest.custRequestId}]
+ <#if informationMap.workEffortId?has_content>has been added to sprint ${informationMap.workEffortName?if_exists} [${informationMap.workEffortId?if_exists}]#if>
+ <#if informationMap.productId?has_content>The related product: ${informationMap.internalName?if_exists} [${informationMap.productId?if_exists}]#if>.
+
+
+ <#if custRequest.fromPartyId == partyIdTo>
+ The complete information about this sprint can be found here.....
+
+ #if>
+ Regards.
+ Thank you for your business.
+
+
diff --git a/scrum/testdef/scrumTests.xml b/scrum/testdef/scrumTests.xml
new file mode 100644
index 000000000..23c9d79f2
--- /dev/null
+++ b/scrum/testdef/scrumTests.xml
@@ -0,0 +1,52 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/scrum/webapp/demotest/WEB-INF/controller.xml b/scrum/webapp/demotest/WEB-INF/controller.xml
new file mode 100644
index 000000000..189da5834
--- /dev/null
+++ b/scrum/webapp/demotest/WEB-INF/controller.xml
@@ -0,0 +1,24 @@
+
+
+
+
+
+ scrum Component Site Configuration File
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/scrum/webapp/demotest/WEB-INF/web.xml b/scrum/webapp/demotest/WEB-INF/web.xml
new file mode 100644
index 000000000..33a0d3cf1
--- /dev/null
+++ b/scrum/webapp/demotest/WEB-INF/web.xml
@@ -0,0 +1,111 @@
+
+
+ Open For Business - scrum Component
+ scrum Component of the Open For Business Project
+
+
+
+ webSiteId
+ scrumSite
+ A unique ID used to look up the WebSite entity
+
+
+
+ localDispatcherName
+ scrum
+ A unique name used to identify/recognize the local
+ dispatcher for the Service Engine
+
+
+ entityDelegatorName
+ default
+ The Name of the Entity Delegator to use, defined in
+ entityengine.xml
+
+
+ mainDecoratorLocation
+ component://scrum/widget/demotest/DemotestScreen.xml
+
+ The location of the main-decorator screen to use for this
+ webapp; referred to as a context variable in screen def XML files.
+
+
+
+ widgetVerbose
+ false
+ Enable widget boundary comments. See
+ org.ofbiz.widget.ModelWidget.widgetBoundaryCommentsEnabled().
+
+
+
+ compressHTML
+ false
+ Remove unnecessary whitespace from HTML output.
+
+
+
+
+ ContextFilter
+ ContextFilter
+ org.ofbiz.webapp.control.ContextFilter
+
+ disableContextSecurity
+ N
+
+
+ allowedPaths
+ /error:/control:/select:/index.html:/index.jsp:/default.html:/default.jsp:/images:/includes/maincss.css
+
+
+
+ errorCode
+ 403
+
+
+ redirectPath
+ /control/main
+
+
+
+ ContextFilter
+ /*
+
+
+
+ org.ofbiz.webapp.control.ControlEventListener
+
+
+
+ org.ofbiz.webapp.control.LoginEventListener
+
+
+
+
+
+
+ ControlServlet
+ ControlServlet
+ Main Control Servlet
+ org.ofbiz.webapp.control.ControlServlet
+ 1
+
+
+ ControlServlet
+ /control/*
+
+
+
+ 60
+
+
+
+ index.jsp
+ index.html
+ index.htm
+
+
\ No newline at end of file
diff --git a/scrum/webapp/demotest/error/error.jsp b/scrum/webapp/demotest/error/error.jsp
new file mode 100644
index 000000000..212fbcfa3
--- /dev/null
+++ b/scrum/webapp/demotest/error/error.jsp
@@ -0,0 +1,34 @@
+<%@ page import="org.ofbiz.base.util.*" %>
+
+
+Open For Business Message
+
+
+
+<% String errorMsg = (String) request.getAttribute("_ERROR_MESSAGE_"); %>
+
+
+
+
+
+
+
+
+
+ |
+ :ERROR MESSAGE:
+ |
+
+
+ |
+ <%=UtilFormatOut.replaceString(errorMsg, "\n", " ")%>
+ |
+
+
+ |
+
+
+
+
+
+
\ No newline at end of file
diff --git a/scrum/webapp/demotest/index.jsp b/scrum/webapp/demotest/index.jsp
new file mode 100644
index 000000000..598a0734f
--- /dev/null
+++ b/scrum/webapp/demotest/index.jsp
@@ -0,0 +1 @@
+<%response.sendRedirect("control/main");%>
\ No newline at end of file
diff --git a/scrum/webapp/scrum/WEB-INF/actions/AddProductBacklogItem.groovy b/scrum/webapp/scrum/WEB-INF/actions/AddProductBacklogItem.groovy
new file mode 100644
index 000000000..023b0006c
--- /dev/null
+++ b/scrum/webapp/scrum/WEB-INF/actions/AddProductBacklogItem.groovy
@@ -0,0 +1,137 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*/
+
+import java.sql.*;
+import java.sql.Timestamp;
+import java.util.Calendar;
+import net.fortuna.ical4j.model.DateTime;
+import org.ofbiz.base.util.*;
+import org.ofbiz.entity.condition.*;
+import sun.util.calendar.LocalGregorianCalendar.Date;
+
+def module = "AddProductBacklogItem.groovy";
+
+// find cust request and items
+def performFindInMap = [:];
+performFindInMap.entityName = "CustRequestAndCustRequestItem";
+def inputFields = [:];
+
+if(parameters.statusId == null){
+ parameters.statusId = "";
+}else if("Any".equals(parameters.statusId)){
+ parameters.statusId = "";
+}
+inputFields.putAll(parameters);
+inputFields.custRequestTypeId = "RF_PROD_BACKLOG";
+performFindInMap.inputFields = inputFields;
+performFindInMap.orderBy = "sequenceNum";
+def performFindResults = dispatcher.runSync("performFind", performFindInMap);
+def custRequestAndItems = performFindResults.listIt.getCompleteList();
+performFindResults.listIt.close();
+
+// prepare cust request item list [cust request and item Map]
+def countSequence = 1;
+def custRequestAndCustRequestItems = [];
+custRequestAndItems.each() { custRequestAndItem ->
+ def tempCustRequestAndItem = [:];
+ tempCustRequestAndItem.putAll(custRequestAndItem);
+ tempCustRequestAndItem.sequenceNum = countSequence;
+ tempCustRequestAndItem.realSequenceNum = custRequestAndItem.sequenceNum;
+ // if custRequest has task then get Actual Hours
+ custWorkEffortList = delegator.findByAnd("CustRequestWorkEffort",["custRequestId" : custRequestAndItem.custRequestId]);
+ if (custWorkEffortList) {
+ actualHours = 0.00;
+ custWorkEffortList.each() { custWorkEffortMap ->
+ result = dispatcher.runSync("getScrumActualHour", ["taskId" : custWorkEffortMap.workEffortId,"partyId" : null, "userLogin" : userLogin]);
+ actualHours += result.actualHours;
+ }
+ if(actualHours) {
+ tempCustRequestAndItem.actualHours = actualHours;
+ } else {
+ tempCustRequestAndItem.actualHours = null;
+ }
+ } else {
+ tempCustRequestAndItem.actualHours = null;
+ }
+ custRequestAndCustRequestItems.add(tempCustRequestAndItem);
+ countSequence ++;
+}
+
+if ("N".equals(parameters.sequence)) { // re-order category list item
+ custRequestAndCustRequestItems = UtilMisc.sortMaps(custRequestAndCustRequestItems, ["parentCustRequestId"]);
+}
+//set status back for display in Find screen
+if("".equals(parameters.statusId)){
+ parameters.statusId = "Any";
+}
+context.custRequestAndCustRequestItems = custRequestAndCustRequestItems;
+
+// unplanned backlog item list
+
+productId = parameters.productId;
+
+conditionList = [];
+orConditionList = [];
+mainConditionList = [];
+
+conditionList.add(EntityCondition.makeCondition("custRequestTypeId", EntityOperator.EQUALS, "RF_UNPLAN_BACKLOG"));
+conditionList.add(EntityCondition.makeCondition("productId", EntityOperator.EQUALS, parameters.productId));
+
+orConditionList.add(EntityCondition.makeCondition("statusId", EntityOperator.EQUALS, "CRQ_ACCEPTED"));
+orConditionList.add(EntityCondition.makeCondition("statusId", EntityOperator.EQUALS, "CRQ_REOPENED"));
+
+orConditions = EntityCondition.makeCondition(orConditionList, EntityOperator.OR);
+conditions = EntityCondition.makeCondition(conditionList, EntityOperator.AND);
+
+mainConditionList.add(orConditions);
+mainConditionList.add(conditions);
+mainConditions = EntityCondition.makeCondition(mainConditionList, EntityOperator.AND);
+
+unplannedList = delegator.findList("CustRequestAndCustRequestItem", mainConditions, ["custRequestId", "sequenceNum", "statusId", "description", "estimatedMilliSeconds", "custRequestName", "parentCustRequestId"] as Set, ["sequenceNum"], null, false);
+
+def countSequenceUnplanned = 1;
+def unplanBacklogItems = [];
+unplannedList.each() { unplannedItem ->
+ def tempUnplanned = [:];
+ tempUnplanned.putAll(unplannedItem);
+ tempUnplanned.sequenceNum = countSequenceUnplanned;
+ tempUnplanned.realSequenceNum = unplannedItem.sequenceNum;
+ // if custRequest has task then get Actual Hours
+ unplanCustWorkEffortList = delegator.findByAnd("CustRequestWorkEffort",["custRequestId" : unplannedItem.custRequestId]);
+ if (unplanCustWorkEffortList) {
+ actualHours = 0.00;
+ unplanCustWorkEffortList.each() { custWorkEffortMap ->
+ result = dispatcher.runSync("getScrumActualHour", ["taskId" : custWorkEffortMap.workEffortId,"partyId" : null, "userLogin" : userLogin]);
+ actualHours += result.actualHours;
+ }
+ if(actualHours) {
+ tempUnplanned.actualHours = actualHours;
+ } else {
+ tempUnplanned.actualHours = null;
+ }
+ } else {
+ tempUnplanned.actualHours = null;
+ }
+ unplanBacklogItems.add(tempUnplanned);
+ countSequenceUnplanned ++;
+}
+if ("N".equals(parameters.UnplannedSequence)) { // re-order category list item
+ unplanBacklogItems = UtilMisc.sortMaps(unplanBacklogItems, ["parentCustRequestId"]);
+}
+context.unplanBacklogItems = unplanBacklogItems;
diff --git a/scrum/webapp/scrum/WEB-INF/actions/AddResourceTaskParty.groovy b/scrum/webapp/scrum/WEB-INF/actions/AddResourceTaskParty.groovy
new file mode 100644
index 000000000..cd25c7956
--- /dev/null
+++ b/scrum/webapp/scrum/WEB-INF/actions/AddResourceTaskParty.groovy
@@ -0,0 +1,56 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*/
+
+import java.util.*;
+import org.ofbiz.base.util.Debug;
+
+partyId = parameters.partyId
+// get existing task that no assign
+projectSprintBacklogAndTaskList = [];
+projectAndTaskList = delegator.findByAnd("ProjectSprintBacklogAndTask", ["sprintTypeId" : "SCRUM_SPRINT","taskCurrentStatusId" : "STS_CREATED"], ["taskId DESC"]);
+projectAndTaskList.each { projectAndTaskMap ->
+userLoginId = userLogin.partyId;
+ projectId = projectAndTaskMap.projectId;
+ partyAssignmentProjectList = delegator.findByAnd("WorkEffortPartyAssignment", ["workEffortId" : projectId, "partyId" : partyId]);
+ partyAssignmentProjectMap = partyAssignmentProjectList[0];
+ // if this userLoginId is a member of project
+ if (partyAssignmentProjectMap) {
+ sprintId = projectAndTaskMap.sprintId;
+ partyAssignmentSprintList = delegator.findByAnd("WorkEffortPartyAssignment", ["workEffortId" : sprintId, "partyId" : partyId]);
+ partyAssignmentSprintMap = partyAssignmentSprintList[0];
+ // if this userLoginId is a member of sprint
+ if (partyAssignmentSprintMap) {
+ workEffortId = projectAndTaskMap.taskId;
+ partyAssignmentTaskList = delegator.findByAnd("WorkEffortPartyAssignment", ["workEffortId" : workEffortId]);
+ partyAssignmentTaskMap = partyAssignmentTaskList[0];
+ // if the task do not assigned
+ if (!partyAssignmentTaskMap) {
+ projectSprintBacklogAndTaskList.add(projectAndTaskMap);
+ // if the task do not assigned and assigned with custRequestTypeId = RF_SCRUM_MEETINGS
+ } else {
+ custRequestTypeId = projectAndTaskMap.custRequestTypeId;
+ backlogStatusId = projectAndTaskMap.backlogStatusId;
+ if (custRequestTypeId.equals("RF_SCRUM_MEETINGS") && backlogStatusId.equals("CRQ_REVIEWED")) {
+ projectSprintBacklogAndTaskList.add(projectAndTaskMap);
+ }
+ }
+ }
+ }
+ }
+context.projectSprintBacklogAndTaskList = projectSprintBacklogAndTaskList;
\ No newline at end of file
diff --git a/scrum/webapp/scrum/WEB-INF/actions/BacklogNotifications.groovy b/scrum/webapp/scrum/WEB-INF/actions/BacklogNotifications.groovy
new file mode 100644
index 000000000..2f1be615b
--- /dev/null
+++ b/scrum/webapp/scrum/WEB-INF/actions/BacklogNotifications.groovy
@@ -0,0 +1,69 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import org.ofbiz.base.util.*;
+import org.ofbiz.entity.condition.*;
+
+def module = "BacklogNotifications.groovy";
+
+custRequest = delegator.findByPrimaryKey("CustRequest", ["custRequestId" : custRequestId]);
+person = delegator.findByPrimaryKey("PartyNameView", ["partyId" : partyIdTo]);
+informationMap = [:];
+informationMap.internalName = null;
+informationMap.productId = null;
+informationMap.workEffortName = null;
+informationMap.workEffortId = null;
+
+//check in sprint
+andExprs = [EntityCondition.makeCondition("workEffortTypeId", EntityOperator.EQUALS, "SCRUM_SPRINT"),
+ EntityCondition.makeCondition("custRequestId", EntityOperator.EQUALS, custRequestId)];
+backlogCond = EntityCondition.makeCondition(andExprs, EntityOperator.AND);
+backlogList = delegator.findList("ProductBacklog", backlogCond, ["productId", "workEffortId", "custRequestId"] as Set ,null ,null, false);
+if (backlogList) {
+ product = delegator.findByPrimaryKey("Product", ["productId" : backlogList[0].productId]);
+ sprint = delegator.findByPrimaryKey("WorkEffort", ["workEffortId" : backlogList[0].workEffortId]);
+ informationMap.internalName = product.internalName;
+ informationMap.productId = product.productId;
+ informationMap.workEffortName = sprint.workEffortName;
+ informationMap.workEffortId = sprint.workEffortId;
+} else {
+ andExprs = [EntityCondition.makeCondition("custRequestId", EntityOperator.EQUALS, custRequestId)];
+ backlogCond = EntityCondition.makeCondition(andExprs, EntityOperator.AND);
+ backlogList = delegator.findList("ProductBacklog", backlogCond, ["productId", "workEffortId", "custRequestId"] as Set ,null ,null, false);
+ if (backlogList) {
+ if (backlogList[0].productId) {
+ product = delegator.findByPrimaryKey("Product", ["productId" : backlogList[0].productId]);
+ informationMap.internalName = product.internalName;
+ informationMap.productId = product.productId;
+ }
+ }
+}
+// check backlog removed from sprint.
+removedFromSprint = false;
+if ("CRQ_ACCEPTED".equals(custRequest.statusId)) {
+ custStatusList = custRequest.getRelated("CustRequestStatus", ["-custRequestStatusId"]);
+ if (custStatusList.size() > 2 && "CRQ_REVIEWED".equals(custStatusList[1].statusId)) {
+ removedFromSprint = true;
+ }
+ }
+
+context.custRequest = custRequest;
+context.person = person;
+context.informationMap = informationMap;
+context.removedFromSprint = removedFromSprint;
diff --git a/scrum/webapp/scrum/WEB-INF/actions/EditDailyHourReport.groovy b/scrum/webapp/scrum/WEB-INF/actions/EditDailyHourReport.groovy
new file mode 100644
index 000000000..5dfb7a8cb
--- /dev/null
+++ b/scrum/webapp/scrum/WEB-INF/actions/EditDailyHourReport.groovy
@@ -0,0 +1,484 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import java.util.*;
+import java.lang.*;
+import org.ofbiz.base.util.*;
+import org.ofbiz.entity.*;
+import org.ofbiz.base.util.Debug;
+import org.ofbiz.base.util.UtilMisc;
+import org.ofbiz.base.util.UtilValidate;
+import org.ofbiz.base.util.UtilDateTime;
+import org.ofbiz.entity.util.*;
+import org.ofbiz.entity.condition.*;
+import org.ofbiz.webapp.website.WebSiteWorker;
+import java.sql.Timestamp;
+
+uiLabelMap = UtilProperties.getResourceBundleMap("scrumUiLabels", locale);
+partyId = parameters.partyId;
+if (!partyId) {
+ partyId = parameters.userLogin.partyId;
+}
+
+// show the requested timesheet, otherwise the current , if not exist create
+timesheet = null;
+timesheetId = parameters.timesheetId;
+if (timesheetId) {
+ timesheet = delegator.findByPrimaryKey("Timesheet", ["timesheetId" : timesheetId]);
+ partyId = timesheet.partyId; // use the party from this timesheet
+} else {
+ // make sure because of timezone changes, not a duplicate timesheet is created
+ midweek = UtilDateTime.addDaysToTimestamp(UtilDateTime.getWeekStart(UtilDateTime.nowTimestamp()),3);
+ entryExprs = EntityCondition.makeCondition([
+ EntityCondition.makeCondition("fromDate", EntityComparisonOperator.LESS_THAN, midweek),
+ EntityCondition.makeCondition("thruDate", EntityComparisonOperator.GREATER_THAN, midweek),
+ EntityCondition.makeCondition("partyId", EntityComparisonOperator.EQUALS, partyId)
+ ], EntityOperator.AND);
+ entryIterator = delegator.find("Timesheet", entryExprs, null, null, null, null);
+ timesheet = entryIterator.next();
+ entryIterator.close();
+ if (timesheet == null) {
+ result = dispatcher.runSync("createProjectTimesheet", ["userLogin" : parameters.userLogin, "partyId" : partyId]);
+ if (result && result.timesheetId) {
+ timesheet = delegator.findByPrimaryKey("Timesheet", ["timesheetId" : result.timesheetId]);
+ }
+ }
+}
+if (!timesheet) return;
+context.timesheet = timesheet;
+context.weekNumber = UtilDateTime.weekNumber(timesheet.fromDate);
+
+// get the user names
+context.partyNameView = delegator.findByPrimaryKey("PartyNameView",["partyId" : partyId]);
+// get the default rate for this person
+rateTypes = EntityUtil.filterByDate(delegator.findByAnd("PartyRate", ["partyId" : partyId, "defaultRate" : "Y"]));
+if (rateTypes) {
+ context.defaultRateTypeId = rateTypes[0].rateTypeId;
+}
+
+entries = [];
+entry = ["timesheetId" : timesheet.timesheetId];
+leaveEntry = ["timesheetId" : timesheet.timesheetId];
+taskTotal = 0.00;
+planTotal = 0.00;
+leaveTaskTotal = 0.00;
+leavePlanTotal = 0.00;
+day0Total = 0.00; day1Total=0.00; day2Total=0.00; day3Total=0.00; day4Total=0.00; day5Total=0.00; day6Total=0.00;
+pDay0Total = 0.00; pDay1Total=0.00; pDay2Total=0.00; pDay3Total=0.00; pDay4Total=0.00; pDay5Total=0.00; pDay6Total=0.00;
+pHours = 0.00;
+timeEntry = null;
+lastTimeEntry = null;
+emplLeaveEntry = null;
+lastEmplLeaveEntry = null;
+
+// retrieve work effort data when the workeffortId has changed.
+void retrieveWorkEffortData() {
+ // get the planned number of hours
+ entryWorkEffort = lastTimeEntry.getRelatedOne("WorkEffort");
+ if (entryWorkEffort) {
+ plannedHours = entryWorkEffort.getRelated("WorkEffortSkillStandard");
+ pHours = 0.00;
+ plannedHours.each { plannedHour ->
+ if (plannedHour.estimatedDuration) {
+ pHours += plannedHour.estimatedDuration;
+ }
+ }
+ estimatedHour = 0.00;
+
+ estimatedMilliSeconds = entryWorkEffort.estimatedMilliSeconds
+ if (estimatedMilliSeconds > 0)
+ estimatedHour = estimatedMilliSeconds/3600000;
+ entry.plannedHours = estimatedHour;
+ //entry.plannedHours = pHours;
+ planHours = 0.0;
+ planHours = lastTimeEntry.planHours;
+ lastTimeEntryOfTasks = delegator.findByAnd("TimeEntry", ["workEffortId" : lastTimeEntry.workEffortId, "partyId" : partyId], ["-fromDate"]);
+ if (lastTimeEntryOfTasks.size() != 0) lastTimeEntry = lastTimeEntryOfTasks[0];
+ if (planHours < 1) {
+ planHours = estimatedHour;
+ }
+ entry.planHours = lastTimeEntry.planHours;
+ actualHours = entryWorkEffort.getRelated("TimeEntry");
+ aHours = 0.00;
+ actualHours.each { actualHour ->
+ if (actualHour.hours) {
+ aHours += actualHour.hours;
+ }
+ }
+ entry.actualHours = aHours;
+ // get party assignment data to be able to set the task to complete
+ workEffortPartyAssigns = EntityUtil.filterByDate(entryWorkEffort.getRelatedByAnd("WorkEffortPartyAssignment", ["partyId" : partyId]));
+ if (workEffortPartyAssigns) {
+ workEffortPartyAssign = workEffortPartyAssigns[0];
+ entry.fromDate = workEffortPartyAssign.getTimestamp("fromDate");
+ entry.roleTypeId = workEffortPartyAssign.roleTypeId;
+ if ("SCAS_COMPLETED".equals(workEffortPartyAssign.statusId)) {
+ entry.checkComplete = "Y";
+
+ }
+ } else {
+ if ("STS_COMPLETED".equals(entryWorkEffort.currentStatusId)) {
+ entry.checkComplete = "Y";
+ }
+ }
+
+ // get project/phase information
+ entry.workEffortId = entryWorkEffort.workEffortId;
+ entry.workEffortName = entryWorkEffort.workEffortName;
+ result = dispatcher.runSync("getProjectInfoFromTask", ["userLogin" : parameters.userLogin,"taskId" : entryWorkEffort.workEffortId]);
+ entry.phaseId = result.phaseId;
+ entry.phaseName = result.phaseName;
+ entry.projectId = result.projectId;
+ entry.projectName = result.projectName;
+ entry.taskWbsId = result.taskWbsId;
+
+ }
+ entry.acualTotal = taskTotal;
+ entry.planTotal = planTotal;
+ //Drop Down Lists
+ if (entry.checkComplete != "Y") {
+ if (aHours > 0.00)
+ entries.add(entry);
+ } else {
+ entries.add(entry);
+ }
+ // start new entry
+ taskTotal = 0.00;
+ planTotal = 0.00;
+ entry = ["timesheetId" : timesheet.timesheetId];
+}
+
+timeEntries = timesheet.getRelated("TimeEntry", ["workEffortId", "rateTypeId", "fromDate"]);
+te = timeEntries.iterator();
+while (te.hasNext()) {
+ // only fill lastTimeEntry when not the first time
+ if (timeEntry!=void) {
+ lastTimeEntry = timeEntry;
+ }
+ timeEntry = te.next();
+
+ if (lastTimeEntry &&
+ (!lastTimeEntry.workEffortId.equals(timeEntry.workEffortId) ||
+ !lastTimeEntry.rateTypeId.equals(timeEntry.rateTypeId))) {
+ retrieveWorkEffortData();
+ }
+ if (timeEntry.hours) {
+ dayNumber = "d" + (timeEntry.fromDate.getTime() - timesheet.fromDate.getTime()) / (24*60*60*1000);
+ hours = timeEntry.hours.doubleValue();
+ entry.put(String.valueOf(dayNumber), hours);
+ if (dayNumber.equals("d0")) day0Total += hours;
+ if (dayNumber.equals("d1")) day1Total += hours;
+ if (dayNumber.equals("d2")) day2Total += hours;
+ if (dayNumber.equals("d3")) day3Total += hours;
+ if (dayNumber.equals("d4")) day4Total += hours;
+ if (dayNumber.equals("d5")) day5Total += hours;
+ if (dayNumber.equals("d6")) day6Total += hours;
+ taskTotal += hours;
+ }
+ if (timeEntry.planHours) {
+ dayNumber = "pd" + (timeEntry.fromDate.getTime() - timesheet.fromDate.getTime()) / (24*60*60*1000);
+ planHours = timeEntry.planHours.doubleValue();
+ entry.put(String.valueOf(dayNumber), planHours);
+ if (dayNumber.equals("pd0")) pDay0Total += planHours;
+ if (dayNumber.equals("pd1")) pDay1Total += planHours;
+ if (dayNumber.equals("pd2")) pDay2Total += planHours;
+ if (dayNumber.equals("pd3")) pDay3Total += planHours;
+ if (dayNumber.equals("pd4")) pDay4Total += planHours;
+ if (dayNumber.equals("pd5")) pDay5Total += planHours;
+ if (dayNumber.equals("pd6")) pDay6Total += planHours;
+ planTotal += planHours;
+
+ }
+ entry.rateTypeId = timeEntry.rateTypeId;
+}
+//retrieve Empl Leave data.
+void retrieveEmplLeaveData() {
+ if (lastEmplLeaveEntry) {
+ //service get Hours
+ inputMap = [:];
+ inputMap.userLogin = parameters.userLogin;
+ inputMap.partyId = lastEmplLeaveEntry.partyId;
+ inputMap.leaveTypeId = lastEmplLeaveEntry.leaveTypeId;
+ inputMap.fromDate = lastEmplLeaveEntry.fromDate;
+ result = dispatcher.runSync("getPartyLeaveHoursForDate", inputMap);
+ if (result.hours) {
+ leaveEntry.plannedHours = result.hours;
+ leaveEntry.planHours = result.hours;
+ }
+ if (lastEmplLeaveEntry.leaveStatus == "LEAVE_APPROVED") {
+ leaveEntry.checkComplete = "Y";
+ }
+ leaveEntry.partyId = lastEmplLeaveEntry.partyId;
+ leaveEntry.leaveTypeId = lastEmplLeaveEntry.leaveTypeId;
+ leaveEntry.leavefromDate = lastEmplLeaveEntry.fromDate;
+ leaveEntry.leavethruDate = lastEmplLeaveEntry.thruDate;
+ leaveEntry.description = lastEmplLeaveEntry.description;
+ }
+ leaveEntry.acualTotal = leaveTaskTotal;
+ leaveEntry.planHours = leavePlanTotal;
+ leaveEntry.actualHours = leaveTaskTotal;
+ //Drop Down Lists
+ entries.add(leaveEntry);
+ // start new leaveEntry
+ leaveTaskTotal = 0.00;
+ leavePlanTotal = 0.00;
+ leaveEntry = ["timesheetId" : timesheet.timesheetId];
+ }
+
+// define condition
+findOpts = new EntityFindOptions(true, EntityFindOptions.TYPE_SCROLL_INSENSITIVE, EntityFindOptions.CONCUR_READ_ONLY, true);
+leaveExprs = [];
+leaveExprs.add(EntityCondition.makeCondition("fromDate", EntityOperator.GREATER_THAN_EQUAL_TO, timesheet.fromDate));
+leaveExprs.add(EntityCondition.makeCondition("fromDate", EntityOperator.LESS_THAN_EQUAL_TO, timesheet.thruDate));
+leaveExprs.add(EntityCondition.makeCondition("partyId", EntityOperator.EQUALS, partyId));
+emplLeave = delegator.find("EmplLeave", EntityCondition.makeCondition(leaveExprs, EntityOperator.AND), null, null, null, findOpts);
+
+while ((emplLeaveMap = emplLeave.next())) {
+ if (emplLeaveEntry!=void) {
+ lastEmplLeaveEntry = emplLeaveEntry;
+ }
+
+ emplLeaveEntry = emplLeaveMap;
+
+ if (lastEmplLeaveEntry && (
+ !lastEmplLeaveEntry.leaveTypeId.equals(emplLeaveEntry.leaveTypeId) ||
+ !lastEmplLeaveEntry.partyId.equals(emplLeaveEntry.partyId))) {
+ retrieveEmplLeaveData();
+ }
+ input = [:];
+ input.userLogin = parameters.userLogin;
+ input.partyId = emplLeaveEntry.partyId;
+ input.leaveTypeId = emplLeaveEntry.leaveTypeId;
+ input.fromDate = emplLeaveEntry.fromDate;
+ resultHours = dispatcher.runSync("getPartyLeaveHoursForDate", input);
+
+ if (resultHours.hours) {
+ leaveDayNumber = "d" + (emplLeaveEntry.fromDate.getTime() - timesheet.fromDate.getTime()) / (24*60*60*1000);
+ inputMap = [:];
+ inputMap.userLogin = parameters.userLogin;
+ inputMap.partyId = emplLeaveEntry.partyId;
+ inputMap.leaveTypeId = emplLeaveEntry.leaveTypeId;
+ inputMap.fromDate = emplLeaveEntry.fromDate;
+ resultHours = dispatcher.runSync("getPartyLeaveHoursForDate", inputMap);
+ leaveHours = resultHours.hours.doubleValue();
+ leaveEntry.put(String.valueOf(leaveDayNumber), leaveHours);
+ if (leaveDayNumber.equals("d0")) day0Total += leaveHours;
+ if (leaveDayNumber.equals("d1")) day1Total += leaveHours;
+ if (leaveDayNumber.equals("d2")) day2Total += leaveHours;
+ if (leaveDayNumber.equals("d3")) day3Total += leaveHours;
+ if (leaveDayNumber.equals("d4")) day4Total += leaveHours;
+ if (leaveDayNumber.equals("d5")) day5Total += leaveHours;
+ if (leaveDayNumber.equals("d6")) day6Total += leaveHours;
+ leaveTaskTotal += leaveHours;
+ }
+ if (resultHours.hours) {
+ leavePlanDay = "pd" + (emplLeaveEntry.fromDate.getTime() - timesheet.fromDate.getTime()) / (24*60*60*1000);
+ inputMap = [:];
+ inputMap.userLogin = parameters.userLogin;
+ inputMap.partyId = emplLeaveEntry.partyId;
+ inputMap.leaveTypeId = emplLeaveEntry.leaveTypeId;
+ inputMap.fromDate = emplLeaveEntry.fromDate;
+ resultPlanHours = dispatcher.runSync("getPartyLeaveHoursForDate", inputMap);
+ leavePlanHours = resultPlanHours.hours.doubleValue();
+ leaveEntry.put(String.valueOf(leavePlanDay), leavePlanHours);
+ if (leavePlanDay.equals("pd0")) pDay0Total += leavePlanHours;
+ if (leavePlanDay.equals("pd1")) pDay1Total += leavePlanHours;
+ if (leavePlanDay.equals("pd2")) pDay2Total += leavePlanHours;
+ if (leavePlanDay.equals("pd3")) pDay3Total += leavePlanHours;
+ if (leavePlanDay.equals("pd4")) pDay4Total += leavePlanHours;
+ if (leavePlanDay.equals("pd5")) pDay5Total += leavePlanHours;
+ if (leavePlanDay.equals("pd6")) pDay6Total += leavePlanHours;
+ leavePlanTotal += leavePlanHours;
+ }
+ leaveEntry.rateTypeId = "STANDARD";
+}
+emplLeave.close();
+
+if (timeEntry) {
+ lastTimeEntry = timeEntry;
+ retrieveWorkEffortData();
+ }
+if (emplLeaveEntry) {
+ lastEmplLeaveEntry = emplLeaveEntry;
+ retrieveEmplLeaveData();
+ }
+
+// add empty lines if timesheet not completed
+if (!timesheet.statusId.equals("TIMESHEET_COMPLETED")) {
+ for (c=0; c < 3; c++) { // add empty lines
+ entries.add(["timesheetId" : timesheet.timesheetId]);
+ }
+}
+
+// add the totals line if at least one entry
+if (timeEntry || emplLeaveEntry) {
+ entry = ["timesheetId" : timesheet.timesheetId];
+ entry.d0 = day0Total;
+ entry.d1 = day1Total;
+ entry.d2 = day2Total;
+ entry.d3 = day3Total;
+ entry.d4 = day4Total;
+ entry.d5 = day5Total;
+ entry.d6 = day6Total;
+ entry.pd0 = pDay0Total;
+ entry.pd1 = pDay1Total;
+ entry.pd2 = pDay2Total;
+ entry.pd3 = pDay3Total;
+ entry.pd4 = pDay4Total;
+ entry.pd5 = pDay5Total;
+ entry.pd6 = pDay6Total;
+ entry.phaseName = uiLabelMap.ScrumTotals;
+ entry.workEffortId = "Totals";
+ entry.total = day0Total + day1Total + day2Total + day3Total + day4Total + day5Total + day6Total;
+ entries.add(entry);
+}
+context.timeEntries = entries;
+// get all timesheets of this user, including the planned hours
+timesheetsDb = delegator.findByAnd("Timesheet", ["partyId" : partyId], ["fromDate DESC"]);
+timesheets = new LinkedList();
+timesheetsDb.each { timesheetDb ->
+ //get hours from EmplLeave;
+ findOpts = new EntityFindOptions(true, EntityFindOptions.TYPE_SCROLL_INSENSITIVE, EntityFindOptions.CONCUR_READ_ONLY, true);
+ leaveExprsList = [];
+ leaveExprsList.add(EntityCondition.makeCondition("fromDate", EntityOperator.GREATER_THAN_EQUAL_TO, timesheetDb.fromDate));
+ leaveExprsList.add(EntityCondition.makeCondition("fromDate", EntityOperator.LESS_THAN_EQUAL_TO, timesheetDb.thruDate));
+ leaveExprsList.add(EntityCondition.makeCondition("partyId", EntityOperator.EQUALS, partyId));
+ emplLeaveList = delegator.find("EmplLeave", EntityCondition.makeCondition(leaveExprsList, EntityOperator.AND), null, null, null, findOpts);
+ leaveHours = 0.00;
+
+ while ((emplLeaveMap = emplLeaveList.next())) {
+ emplLeaveEntry = emplLeaveMap;
+ inputData = [:];
+ inputData.userLogin = parameters.userLogin;
+ inputData.partyId = emplLeaveEntry.partyId;
+ inputData.leaveTypeId = emplLeaveEntry.leaveTypeId;
+ inputData.fromDate = emplLeaveEntry.fromDate;
+ resultHour = dispatcher.runSync("getPartyLeaveHoursForDate", inputData);
+ if (resultHour) {
+ leaveActualHours = resultHour.hours.doubleValue();
+ leaveHours += leaveActualHours;
+ }
+ }
+ //get hours from TimeEntry;
+ timesheet = [:];
+ timesheet.putAll(timesheetDb);
+ entries = timesheetDb.getRelated("TimeEntry");
+ hours = 0.00;
+ entries.each { timeEntry ->
+ if (timeEntry.hours) {
+ hours += timeEntry.hours.doubleValue();
+ }
+ }
+ timesheet.weekNumber = UtilDateTime.weekNumber(timesheetDb.fromDate);
+ timesheet.hours = hours + leaveHours;
+ timesheets.add(timesheet);
+ emplLeaveList.close();
+}
+context.timesheets = timesheets;
+
+// get existing task that no assign
+taskList=[];
+projectSprintBacklogAndTaskList = [];
+backlogIndexList = [];
+projectAndTaskList = delegator.findByAnd("ProjectSprintBacklogAndTask", ["sprintTypeId" : "SCRUM_SPRINT","taskCurrentStatusId" : "STS_CREATED"], ["projectName ASC","taskActualStartDate DESC"]);
+projectAndTaskList.each { projectAndTaskMap ->
+userLoginId = userLogin.partyId;
+ sprintId = projectAndTaskMap.sprintId;
+ workEffortList = delegator.findByAnd("WorkEffortAndProduct", ["workEffortId" : projectAndTaskMap.projectId]);
+ backlogIndexList.add(workEffortList[0].productId);
+
+ partyAssignmentSprintList = delegator.findByAnd("WorkEffortPartyAssignment", ["workEffortId" : sprintId, "partyId" : userLoginId]);
+ partyAssignmentSprintMap = partyAssignmentSprintList[0];
+ // if this userLoginId is a member of sprint
+ if (partyAssignmentSprintMap) {
+ workEffortId = projectAndTaskMap.taskId;
+ partyAssignmentTaskList = delegator.findByAnd("WorkEffortPartyAssignment", ["workEffortId" : workEffortId]);
+ partyAssignmentTaskMap = partyAssignmentTaskList[0];
+ // if the task do not assigned
+ if (partyAssignmentTaskMap) {
+ custRequestTypeId = projectAndTaskMap.custRequestTypeId;
+ backlogStatusId = projectAndTaskMap.backlogStatusId;
+ if (custRequestTypeId.equals("RF_SCRUM_MEETINGS") && backlogStatusId.equals("CRQ_REVIEWED")) {
+ projectSprintBacklogAndTaskList.add(projectAndTaskMap);
+ }
+ } else {
+ projectSprintBacklogAndTaskList.add(0,projectAndTaskMap);
+ }
+ }
+ }
+
+// for unplanned taks.
+unplanList=[];
+if (backlogIndexList) {
+ backlogIndex = new HashSet(backlogIndexList);
+ custRequestList = delegator.findByAnd("CustRequest", ["custRequestTypeId" : "RF_UNPLAN_BACKLOG","statusId" : "CRQ_REVIEWED"],["custRequestDate DESC"]);
+ if (custRequestList) {
+ custRequestList.each { custRequestMap ->
+ custRequestItemList = custRequestMap.getRelated("CustRequestItem");
+ custRequestItem =
+ productOut = custRequestItemList[0].productId;
+ product = delegator.findByPrimaryKey("Product", ["productId" : productOut]);
+ backlogIndex.each { backlogProduct ->
+ productId = backlogProduct
+ if (productId.equals(productOut)) {
+ custRequestWorkEffortList = delegator.findByAnd("CustRequestWorkEffort", ["custRequestId" : custRequestItemList[0].custRequestId]);
+ custRequestWorkEffortList.each { custRequestWorkEffortMap ->
+ partyAssignmentTaskList = delegator.findByAnd("WorkEffortPartyAssignment", ["workEffortId" : custRequestWorkEffortMap.workEffortId]);
+ partyAssignmentTaskMap = partyAssignmentTaskList[0];
+ // if the task do not assigned
+ if (!partyAssignmentTaskMap) {
+ result = [:];
+ workEffortMap = delegator.findByPrimaryKey("WorkEffort", ["workEffortId" : custRequestWorkEffortMap.workEffortId]);
+ result.description = custRequestMap.description;
+ result.productName = product.internalName;
+ result.taskId = workEffortMap.workEffortId;
+ result.taskName = workEffortMap.workEffortName;
+ result.custRequestTypeId = custRequestMap.custRequestTypeId;
+ result.taskTypeId = workEffortMap.workEffortTypeId;
+ unplanList.add(result);
+ }
+ }
+ }
+ }
+ }
+ }
+}
+projectSprintBacklogAndTaskList = UtilMisc.sortMaps(projectSprintBacklogAndTaskList, ["projectName","sprintName","-taskTypeId","custRequestId"]);
+projectSprintBacklogAndTaskList.each { projectSprintBacklogAndTaskMap ->
+ blTypeId = projectSprintBacklogAndTaskMap.custRequestTypeId;
+ if (blTypeId == "RF_SCRUM_MEETINGS"){
+ taskList.add(projectSprintBacklogAndTaskMap);
+ }
+}
+projectSprintBacklogAndTaskList = UtilMisc.sortMaps(projectSprintBacklogAndTaskList, ["-projectName","sprintName","-taskTypeId","custRequestId"]);
+projectSprintBacklogAndTaskList.each { projectSprintBacklogAndTaskMap ->
+ blTypeId = projectSprintBacklogAndTaskMap.custRequestTypeId;
+ if (blTypeId == "RF_PROD_BACKLOG"){
+ taskList.add(0,projectSprintBacklogAndTaskMap);
+ }
+}
+unplanList = UtilMisc.sortMaps(unplanList,["-productName","-taskTypeId","custRequestId"]);
+unplanList.each { unplanMap->
+ taskList.add(0,unplanMap);
+}
+context.taskList = taskList;
+
+// notification context
+webSiteId = WebSiteWorker.getWebSiteId(request);
+context.webSiteId = webSiteId;
diff --git a/scrum/webapp/scrum/WEB-INF/actions/EditWeekTimesheet.groovy b/scrum/webapp/scrum/WEB-INF/actions/EditWeekTimesheet.groovy
new file mode 100644
index 000000000..20c2b4084
--- /dev/null
+++ b/scrum/webapp/scrum/WEB-INF/actions/EditWeekTimesheet.groovy
@@ -0,0 +1,208 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import java.util.*;
+import java.lang.*;
+import org.ofbiz.base.util.*;
+import org.ofbiz.entity.*;
+import org.ofbiz.base.util.UtilMisc;
+import org.ofbiz.base.util.UtilValidate;
+import org.ofbiz.base.util.UtilDateTime;
+import org.ofbiz.entity.util.*;
+import org.ofbiz.entity.condition.*;
+import java.sql.Timestamp;
+
+uiLabelMap = UtilProperties.getResourceBundleMap("scrumUiLabels", locale);
+
+partyId = parameters.partyId;
+if (!partyId) {
+ partyId = parameters.userLogin.partyId;
+}
+
+// show the requested timesheet, otherwise the current , if not exist create
+timesheet = null;
+timesheetId = parameters.timesheetId;
+if (timesheetId) {
+ timesheet = delegator.findByPrimaryKey("Timesheet", ["timesheetId" : timesheetId]);
+ partyId = timesheet.partyId; // use the party from this timesheet
+} else {
+ // make sure because of timezone changes, not a duplicate timesheet is created
+ midweek = UtilDateTime.addDaysToTimestamp(UtilDateTime.getWeekStart(UtilDateTime.nowTimestamp()),3);
+ entryExprs = EntityCondition.makeCondition([
+ EntityCondition.makeCondition("fromDate", EntityComparisonOperator.LESS_THAN, midweek),
+ EntityCondition.makeCondition("thruDate", EntityComparisonOperator.GREATER_THAN, midweek),
+ EntityCondition.makeCondition("partyId", EntityComparisonOperator.EQUALS, partyId)
+ ], EntityOperator.AND);
+ entryIterator = delegator.find("Timesheet", entryExprs, null, null, null, null);
+ timesheet = entryIterator.next();
+ entryIterator.close();
+ if (timesheet == null) {
+ result = dispatcher.runSync("createProjectTimesheet", ["userLogin" : parameters.userLogin, "partyId" : partyId]);
+ if (result && result.timesheetId) {
+ timesheet = delegator.findByPrimaryKey("Timesheet", ["timesheetId" : result.timesheetId]);
+ }
+ }
+}
+if (!timesheet) return;
+context.timesheet = timesheet;
+context.weekNumber = UtilDateTime.weekNumber(timesheet.fromDate);
+
+// get the user names
+context.partyNameView = delegator.findByPrimaryKey("PartyNameView",["partyId" : partyId]);
+// get the default rate for this person
+rateTypes = EntityUtil.filterByDate(delegator.findByAnd("PartyRate", ["partyId" : partyId, "defaultRate" : "Y"]));
+if (rateTypes) {
+ context.defaultRateTypeId = rateTypes[0].rateTypeId;
+}
+
+entries = [];
+entry = ["timesheetId" : timesheet.timesheetId];
+taskTotal = 0.00;
+day0Total = 0.00; day1Total=0.00; day2Total=0.00; day3Total=0.00; day4Total=0.00; day5Total=0.00; day6Total=0.00;
+pHours = 0.00;
+timeEntry = null;
+lastTimeEntry = null;
+
+// retrieve work effort data when the workeffortId has changed.
+void retrieveWorkEffortData() {
+ // get the planned number of hours
+ entryWorkEffort = lastTimeEntry.getRelatedOne("WorkEffort");
+ if (entryWorkEffort) {
+ plannedHours = entryWorkEffort.getRelated("WorkEffortSkillStandard");
+ pHours = 0.00;
+ plannedHours.each { plannedHour ->
+ if (plannedHour.estimatedDuration) {
+ pHours += plannedHour.estimatedDuration;
+ }
+ }
+ entry.plannedHours = pHours;
+ actualHours = entryWorkEffort.getRelated("TimeEntry");
+ aHours = 0.00;
+ actualHours.each { actualHour ->
+ if (actualHour.hours) {
+ aHours += actualHour.hours;
+ }
+ }
+ entry.actualHours = aHours;
+ // get party assignment data to be able to set the task to complete
+ workEffortPartyAssigns = EntityUtil.filterByDate(entryWorkEffort.getRelatedByAnd("WorkEffortPartyAssignment", ["partyId" : partyId]));
+ if (workEffortPartyAssigns) {
+ workEffortPartyAssign = workEffortPartyAssigns[0];
+ entry.fromDate = workEffortPartyAssign.getTimestamp("fromDate");
+ entry.roleTypeId = workEffortPartyAssign.roleTypeId;
+ if ("PAS_COMPLETED".equals(workEffortPartyAssign.statusId)) {
+ entry.checkComplete = "Y";
+ }
+ }
+
+ // get project/phase information
+ entry.workEffortId = entryWorkEffort.workEffortId;
+ entry.workEffortName = entryWorkEffort.workEffortName;
+ result = dispatcher.runSync("getProjectIdAndNameFromTask", ["userLogin" : parameters.userLogin,"taskId" : entryWorkEffort.workEffortId]);
+ entry.sprintId = result.phaseId;
+ entry.sprintName = result.phaseName;
+ entry.projectId = result.projectId;
+ entry.projectName = result.projectName;
+ entry.taskWbsId = result.taskWbsId;
+
+ }
+ entry.total = taskTotal;
+ //Drop Down Lists
+ entries.add(entry);
+ // start new entry
+ taskTotal = 0.00;
+ entry = ["timesheetId" : timesheet.timesheetId];
+}
+
+timeEntries = timesheet.getRelated("TimeEntry", ["workEffortId", "rateTypeId", "fromDate"]);
+te = timeEntries.iterator();
+while (te.hasNext()) {
+ // only fill lastTimeEntry when not the first time
+ if (timeEntry!=void) {
+ lastTimeEntry = timeEntry;
+ }
+ timeEntry = te.next();
+
+ if (lastTimeEntry &&
+ (!lastTimeEntry.workEffortId.equals(timeEntry.workEffortId) ||
+ !lastTimeEntry.rateTypeId.equals(timeEntry.rateTypeId))) {
+ retrieveWorkEffortData();
+ }
+ if (timeEntry.hours) {
+ dayNumber = "d" + (timeEntry.fromDate.getTime() - timesheet.fromDate.getTime()) / (24*60*60*1000);
+ hours = timeEntry.hours.doubleValue();
+ entry.put(String.valueOf(dayNumber), hours);
+ if (dayNumber.equals("d0")) day0Total += hours;
+ if (dayNumber.equals("d1")) day1Total += hours;
+ if (dayNumber.equals("d2")) day2Total += hours;
+ if (dayNumber.equals("d3")) day3Total += hours;
+ if (dayNumber.equals("d4")) day4Total += hours;
+ if (dayNumber.equals("d5")) day5Total += hours;
+ if (dayNumber.equals("d6")) day6Total += hours;
+ taskTotal += hours;
+ }
+ entry.rateTypeId = timeEntry.rateTypeId;
+}
+
+if (timeEntry) {
+ lastTimeEntry = timeEntry;
+ retrieveWorkEffortData();
+ }
+
+// add empty lines if timesheet not completed
+if (!timesheet.statusId.equals("TIMESHEET_COMPLETED")) {
+ for (c=0; c < 3; c++) { // add empty lines
+ entries.add(["timesheetId" : timesheet.timesheetId]);
+ }
+}
+
+// add the totals line if at least one entry
+if (timeEntry) {
+ entry = ["timesheetId" : timesheet.timesheetId];
+ entry.d0 = day0Total;
+ entry.d1 = day1Total;
+ entry.d2 = day2Total;
+ entry.d3 = day3Total;
+ entry.d4 = day4Total;
+ entry.d5 = day5Total;
+ entry.d6 = day6Total;
+ entry.phaseName = uiLabelMap.ScrumTotals;
+ entry.workEffortId = "Totals";
+ entry.total = day0Total + day1Total + day2Total + day3Total + day4Total + day5Total + day6Total;
+ entries.add(entry);
+}
+context.timeEntries = entries;
+// get all timesheets of this user, including the planned hours
+timesheetsDb = delegator.findByAnd("Timesheet", ["partyId" : partyId], ["fromDate DESC"]);
+timesheets = new LinkedList();
+timesheetsDb.each { timesheetDb ->
+ timesheet = [:];
+ timesheet.putAll(timesheetDb);
+ entries = timesheetDb.getRelated("TimeEntry");
+ hours = 0.00;
+ entries.each { timeEntry ->
+ if (timeEntry.hours) {
+ hours += timeEntry.hours.doubleValue();
+ }
+ }
+ timesheet.weekNumber = UtilDateTime.weekNumber(timesheetDb.fromDate);
+ timesheet.hours = hours;
+ timesheets.add(timesheet);
+}
+context.timesheets = timesheets;
diff --git a/scrum/webapp/scrum/WEB-INF/actions/FindBacklogItem.groovy b/scrum/webapp/scrum/WEB-INF/actions/FindBacklogItem.groovy
new file mode 100644
index 000000000..d79b55f85
--- /dev/null
+++ b/scrum/webapp/scrum/WEB-INF/actions/FindBacklogItem.groovy
@@ -0,0 +1,88 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import java.util.*;
+import java.lang.*;
+import javolution.util.FastList;
+import org.ofbiz.base.util.*;
+import org.ofbiz.entity.*;
+import org.ofbiz.base.util.UtilMisc;
+import org.ofbiz.base.util.UtilValidate;
+import org.ofbiz.base.util.UtilDateTime;
+import org.ofbiz.entity.util.*;
+import org.ofbiz.entity.condition.*;
+import java.sql.Timestamp;
+
+productId =parameters.productId;
+custRequestList=[];
+backlogList=[];
+custRequestList = delegator.findByAnd("CustRequestItem", ["productId" : productId]);
+custRequestList.each { custRequestListMap ->
+ custRequestId=custRequestListMap.custRequestId;
+ exprBldr = FastList.newInstance();
+ exprBldr.add(EntityCondition.makeCondition("statusId", EntityOperator.EQUALS, "CRQ_REOPENED"));
+ exprBldr.add(EntityCondition.makeCondition("statusId", EntityOperator.EQUALS, "CRQ_REVIEWED"));
+ andExprs = FastList.newInstance();
+ andExprs.add(EntityCondition.makeCondition("custRequestId", EntityOperator.EQUALS, custRequestId));
+ andExprs.add(EntityCondition.makeCondition(exprBldr, EntityOperator.OR));
+ custRequestTypeCond = EntityCondition.makeCondition(andExprs, EntityOperator.AND);
+ orderBy = ["custRequestTypeId"];
+ productBacklogList = delegator.findList("CustRequest", custRequestTypeCond, null,orderBy ,null, false);
+ productBacklogList.each { productBacklogMap ->
+ productBackId = productBacklogMap.custRequestId;
+ taskBacklogList = delegator.findByAnd("CustRequestWorkEffort", ["custRequestId" : productBackId]);
+ int countImplTask=0, countImplTaskComplete=0, countInstallTask=0, countInstallTaskComplete=0, countErrTask=0, countErrTaskComplete=0, countTestTask=0;
+ taskBacklogList.each { taskBacklogMap ->
+ taskId = taskBacklogMap.workEffortId;
+
+ task = delegator.findByPrimaryKey("WorkEffort", ["workEffortId" : taskId]);
+ if (task.workEffortTypeId == "SCRUM_TASK_IMPL") {
+ countImplTask+=1;
+ if ( task.currentStatusId == "STS_COMPLETED" || task.currentStatusId == "STS_CANCELLED") {
+ countImplTaskComplete+=1;
+ }
+ }
+ else if (task.workEffortTypeId == "SCRUM_TASK_INST") {
+ countInstallTask+=1;
+ if ( task.currentStatusId == "STS_COMPLETED" || task.currentStatusId == "STS_CANCELLED") {
+ countInstallTaskComplete+=1;
+ }
+ }
+ else if (task.workEffortTypeId == "SCRUM_TASK_ERROR") {
+ countErrTask+=1;
+ if ( task.currentStatusId == "STS_COMPLETED" || task.currentStatusId == "STS_CANCELLED") {
+ countErrTaskComplete+=1;
+ }
+ }
+ else if (task.workEffortTypeId == "SCRUM_TASK_TEST" || task.currentStatusId == "STS_CANCELLED") {
+ countTestTask+=1;
+ }
+ }
+ if ((countImplTask > 0 || countErrTask > 0 || countInstallTask > 0) && countImplTask == countImplTaskComplete
+ && countInstallTask == countInstallTaskComplete && countErrTask == countErrTaskComplete && countTestTask > 0) {
+ productBacklogMap = productBacklogMap.getAllFields();
+ backlogList.add(productBacklogMap);
+ }
+ }
+}
+if (backlogList) {
+ backlogList = UtilMisc.sortMaps(backlogList, ["-custRequestName"])
+ context.backlogList = backlogList;
+}
+
diff --git a/scrum/webapp/scrum/WEB-INF/actions/FindProductBacklogItem.groovy b/scrum/webapp/scrum/WEB-INF/actions/FindProductBacklogItem.groovy
new file mode 100644
index 000000000..f56a80fc2
--- /dev/null
+++ b/scrum/webapp/scrum/WEB-INF/actions/FindProductBacklogItem.groovy
@@ -0,0 +1,132 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import java.sql.*;
+import java.sql.Timestamp;
+import java.util.Calendar;
+import net.fortuna.ical4j.model.DateTime;
+import org.ofbiz.base.util.*;
+import org.ofbiz.entity.condition.*;
+import sun.util.calendar.LocalGregorianCalendar.Date;
+
+def module = "FindProductBacklogItem.groovy";
+
+// list planned and unplanned backlog
+conditionBacklogList = [];
+orConditionBacklogList = [];
+mainConditionBacklogList = [];
+orConditionsBacklog = null;
+parameters.custRequestTypeId = parameters.custRequestTypeId ?: "Any";
+description = parameters.description;
+custRequestId = parameters.custRequestId;
+orderBy = "custRequestDate";
+
+if ((parameters.billed != null)||(parameters.parentCustRequestId != null)||(parameters.description != null)
+ ||(parameters.fromPartyId != null)||(parameters.custRequestDate != null)||(parameters.custRequestId != null)||(viewIndex > 0)) {
+ if(UtilValidate.isNotEmpty(parameters.productId)){
+ conditionBacklogList.add(EntityCondition.makeCondition("productId", EntityOperator.EQUALS, parameters.productId));
+ }
+ if("Any".equals(parameters.custRequestTypeId)){
+ orConditionBacklogList.add(EntityCondition.makeCondition("custRequestTypeId", EntityOperator.EQUALS, "RF_UNPLAN_BACKLOG"));
+ orConditionBacklogList.add(EntityCondition.makeCondition("custRequestTypeId", EntityOperator.EQUALS, "RF_PROD_BACKLOG"));
+ orConditionsBacklog = EntityCondition.makeCondition(orConditionBacklogList, EntityOperator.OR);
+ }else{
+ conditionBacklogList.add(EntityCondition.makeCondition("custRequestTypeId", EntityOperator.EQUALS, parameters.custRequestTypeId));
+ }
+
+ if(UtilValidate.isEmpty(parameters.billed)){
+ orConditionBacklogList.add(EntityCondition.makeCondition("billed", EntityOperator.EQUALS, "Y"));
+ orConditionBacklogList.add(EntityCondition.makeCondition("billed", EntityOperator.EQUALS, "N"));
+ orConditionsBacklog = EntityCondition.makeCondition(orConditionBacklogList, EntityOperator.OR);
+ }else{
+ conditionBacklogList.add(EntityCondition.makeCondition("billed", EntityOperator.EQUALS, parameters.billed));
+ }
+
+ if(!"Any".equals(parameters.statusId)){
+ orderBy = "sequenceNum";
+ conditionBacklogList.add(EntityCondition.makeCondition("statusId", EntityOperator.EQUALS, parameters.statusId));
+ }
+
+ if(UtilValidate.isNotEmpty(parameters.parentCustRequestId)){
+ conditionBacklogList.add(EntityCondition.makeCondition("parentCustRequestId", EntityOperator.EQUALS, parameters.parentCustRequestId));
+ }
+ if(UtilValidate.isNotEmpty(parameters.description)){
+ conditionBacklogList.add(EntityCondition.makeCondition("description", EntityOperator.LIKE, "%" + description + "%"));
+ }
+
+ if(UtilValidate.isNotEmpty(parameters.fromPartyId)){
+ conditionBacklogList.add(EntityCondition.makeCondition("fromPartyId", EntityOperator.LIKE, "%" + parameters.fromPartyId + "%"));
+ }
+
+ if (UtilValidate.isNotEmpty(parameters.custRequestDate)){
+ fromDate = parameters.custRequestDate;
+ fromDate = fromDate + " " + "00:00:00.000";
+ conditionBacklogList.add(EntityCondition.makeCondition("custRequestDate", EntityOperator.GREATER_THAN_EQUAL_TO, Timestamp.valueOf(fromDate)));
+ thruDate = parameters.custRequestDate;
+ thruDate = thruDate + " " + "23:59:59.999";
+ conditionBacklogList.add(EntityCondition.makeCondition("custRequestDate", EntityOperator.LESS_THAN_EQUAL_TO, Timestamp.valueOf(thruDate)));
+ }
+
+ if(UtilValidate.isNotEmpty(parameters.custRequestId)){
+ conditionBacklogList.add(EntityCondition.makeCondition("custRequestId", EntityOperator.LIKE, custRequestId + "%"));
+ }
+
+ conditionsBacklog = EntityCondition.makeCondition(conditionBacklogList, EntityOperator.AND);
+
+ if(UtilValidate.isNotEmpty(orConditionsBacklog)){
+ mainConditionBacklogList.add(orConditionsBacklog);
+ }
+
+ mainConditionBacklogList.add(conditionsBacklog);
+ mainConditionsBacklog = EntityCondition.makeCondition(mainConditionBacklogList, EntityOperator.AND);
+
+ backlogList = delegator.findList("CustRequestAndCustRequestItem", mainConditionsBacklog, ["custRequestId","custRequestTypeId", "sequenceNum", "statusId", "description", "estimatedMilliSeconds", "custRequestName", "parentCustRequestId","productId","billed","custRequestDate","fromPartyId"] as Set, ["-custRequestTypeId",orderBy], null, false);
+ def countSequenceBacklog = 1;
+ def backlogItems = [];
+ backlogList.each() { backlogItem ->
+ def tempBacklog = [:];
+ tempBacklog.putAll(backlogItem);
+ tempBacklog.sequenceNum = countSequenceBacklog;
+ tempBacklog.realSequenceNum = backlogItem.sequenceNum;
+ // if custRequest has task then get Actual Hours
+ backlogCustWorkEffortList = delegator.findByAnd("CustRequestWorkEffort",["custRequestId" : backlogItem.custRequestId]);
+ if (backlogCustWorkEffortList) {
+ actualHours = 0.00;
+ backlogCustWorkEffortList.each() { custWorkEffortMap ->
+ result = dispatcher.runSync("getScrumActualHour", ["taskId" : custWorkEffortMap.workEffortId,"partyId" : null, "userLogin" : userLogin]);
+ actualHours += result.actualHours;
+ }
+ if(actualHours) {
+ tempBacklog.actualHours = actualHours;
+ } else {
+ tempBacklog.actualHours = null;
+ }
+ } else {
+ tempBacklog.actualHours = null;
+ }
+ backlogItems.add(tempBacklog);
+ countSequenceBacklog ++;
+ }
+
+ //re-order category list item
+ if ("N".equals(parameters.sequence)) {
+ backlogItems = UtilMisc.sortMaps(backlogItems, ["parentCustRequestId"]);
+ }
+ context.backlogItems = backlogItems;
+}
diff --git a/scrum/webapp/scrum/WEB-INF/actions/FindTaskList.groovy b/scrum/webapp/scrum/WEB-INF/actions/FindTaskList.groovy
new file mode 100644
index 000000000..06e0a3158
--- /dev/null
+++ b/scrum/webapp/scrum/WEB-INF/actions/FindTaskList.groovy
@@ -0,0 +1,221 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*/
+
+import java.util.*;
+import java.lang.*;
+import javolution.util.FastList;
+import org.apache.tools.ant.taskdefs.Parallel.TaskList;
+import org.ofbiz.base.util.*;
+import org.ofbiz.entity.*;
+import org.ofbiz.base.util.UtilMisc;
+import org.ofbiz.base.util.UtilValidate;
+import org.ofbiz.base.util.UtilDateTime;
+import org.ofbiz.entity.util.*;
+import org.ofbiz.entity.condition.*;
+import java.sql.Timestamp;
+
+taskId = parameters.taskId;;
+taskName = parameters.taskName;
+sprintId = parameters.sprintId;
+sprintName = parameters.sprintName;
+taskTypeId = parameters.taskTypeId;
+projectId = parameters.projectId;
+projectName = parameters.projectName;
+backlogTypeId = parameters.unplannedFlag;
+statusId = parameters.statusId;
+partyId = parameters.partyId;
+
+unplannedTaskList = [];
+plannedTaskList = [];
+resultList=[];
+taskList=[];
+implementTaskList=[];
+testTaskList=[];
+errorTaskList = [];
+installTaskList = [];
+
+// get Unplaned task list
+if ((taskId != null)||(taskName != null)||(taskTypeId != null)||(sprintId != null)||(sprintName != null)
+ ||(projectId != null)||(projectName != null)||(backlogTypeId != null)||(statusId != null)
+ ||(partyId != null)||(viewIndex_1 > 0)||(viewIndex_2 > 0)||(viewIndex_3 > 0)||(viewIndex_4 > 0)
+ ||(viewIndexNo_1 > 0)||(viewIndexNo_2 > 0)||(viewIndexNo_3 > 0)||(viewIndexNo_4 > 0)){
+ if ((taskId != null)||(taskName != null)||(taskTypeId != null)){
+ exprBldr = FastList.newInstance();
+ if (taskId) {
+ exprBldr.add(EntityCondition.makeCondition("workEffortId", EntityOperator.EQUALS, taskId));
+ }
+ if (taskName){
+ exprBldr.add(EntityCondition.makeCondition("workEffortName", EntityOperator.LIKE, "%"+taskName+"%"));
+ }
+ if (taskTypeId){
+ exprBldr.add(EntityCondition.makeCondition("workEffortTypeId", EntityOperator.EQUALS, taskTypeId));
+ }
+ if (statusId){
+ exprBldr.add(EntityCondition.makeCondition("currentStatusId", EntityOperator.EQUALS, statusId));
+ }
+ unplannedCond = EntityCondition.makeCondition(exprBldr, EntityOperator.AND);
+ unplannedTaskList = delegator.findList("UnPlannedBacklogsAndTasks", unplannedCond, null,["-createdDate"] ,null, false);
+ }
+ else{
+ unplannedTaskList = delegator.findList("UnPlannedBacklogsAndTasks", null, null,["-createdDate"] ,null, false);
+ }
+
+ exprBldr2 = FastList.newInstance();
+ if (taskId) {
+ exprBldr2.add(EntityCondition.makeCondition("taskId", EntityOperator.EQUALS, taskId));
+ }
+ if (taskName){
+ exprBldr2.add(EntityCondition.makeCondition("taskName", EntityOperator.LIKE, "%"+taskName+"%"));
+ }
+ if (taskTypeId){
+ exprBldr2.add(EntityCondition.makeCondition("taskTypeId", EntityOperator.EQUALS, taskTypeId));
+ }
+ if (statusId){
+ exprBldr2.add(EntityCondition.makeCondition("taskCurrentStatusId", EntityOperator.EQUALS, statusId));
+ }
+ if (sprintId){
+ exprBldr2.add(EntityCondition.makeCondition("sprintId", EntityOperator.EQUALS, sprintId));
+ }
+ if (sprintName){
+ exprBldr2.add(EntityCondition.makeCondition("sprintName", EntityOperator.LIKE, "%"+sprintName+"%"));
+ }
+ if (projectId){
+ exprBldr2.add(EntityCondition.makeCondition("projectId", EntityOperator.EQUALS, projectId));
+ }
+ if (projectName){
+ exprBldr2.add(EntityCondition.makeCondition("projectName", EntityOperator.LIKE, "%"+projectName+"%"));
+ }
+ exprBldr2.add(EntityCondition.makeCondition("sprintTypeId", EntityOperator.EQUALS, "SCRUM_SPRINT"));
+ plannedCond = EntityCondition.makeCondition(exprBldr2, EntityOperator.AND);
+ plannedTaskList = delegator.findList("ProjectSprintBacklogAndTask", plannedCond, null,["-taskCreatedDate"] ,null, false);
+
+ unplannedTaskList.each{ unplannedTaskMap ->
+ unplannedMap = [:];
+ unplannedMap.taskId = unplannedTaskMap.workEffortId;
+ unplannedMap.sprintId = null;
+ unplannedMap.projectId = null;
+ unplannedMap.productId = unplannedTaskMap.productId;
+ unplannedMap.taskName = unplannedTaskMap.workEffortName;
+ unplannedMap.taskTypeId = unplannedTaskMap.workEffortTypeId;
+ unplannedMap.taskCurrentStatusId = unplannedTaskMap.currentStatusId;
+ unplannedMap.taskEstimatedMilliSeconds = unplannedTaskMap.estimatedMilliSeconds;
+ unplannedMap.taskCreatedDate = unplannedTaskMap.createdDate;
+ unplannedMap.custRequestId = unplannedTaskMap.custRequestId;
+ unplannedMap.description = unplannedTaskMap.description;
+ unplannedMap.custRequestTypeId = unplannedTaskMap.custRequestTypeId;
+ unplannedMap.taskActualMilliSeconds = unplannedTaskMap.actualMilliSeconds;
+ unplannedMap.taskEstimatedStartDate = unplannedTaskMap.estimatedStartDate;
+ taskList.add(unplannedMap);
+ }
+
+ plannedTaskList.each{ plannedTaskMap ->
+ plannedMap = [:];
+ plannedMap.taskId = plannedTaskMap.taskId;
+ plannedMap.taskName = plannedTaskMap.taskName;
+ plannedMap.taskTypeId = plannedTaskMap.taskTypeId;
+ plannedMap.taskCurrentStatusId = plannedTaskMap.taskCurrentStatusId;
+ plannedMap.taskEstimatedMilliSeconds = plannedTaskMap.taskEstimatedMilliSeconds;
+ plannedMap.taskCreatedDate = plannedTaskMap.taskCreatedDate;
+ plannedMap.sprintId = plannedTaskMap.sprintId;
+ plannedMap.sprintName = plannedTaskMap.sprintName;
+ plannedMap.projectId = plannedTaskMap.projectId;
+ plannedMap.projectName = plannedTaskMap.projectName;
+ plannedMap.custRequestId = plannedTaskMap.custRequestId;
+ plannedMap.description = plannedTaskMap.description;
+ plannedMap.custRequestTypeId = plannedTaskMap.custRequestTypeId;
+ plannedMap.taskActualMilliSeconds = plannedTaskMap.taskActualMilliSeconds;
+ plannedMap.taskEstimatedStartDate = plannedTaskMap.taskEstimatedStartDate;
+ taskList.add(plannedMap);
+ }
+ //Check the backlog
+ if (backlogTypeId){
+ if (backlogTypeId=="Y"){
+ taskList.each{taskMap ->
+ if(taskMap.custRequestTypeId=="RF_UNPLAN_BACKLOG"){
+ resultList.add(taskMap);
+ }
+ }
+ }
+ if (backlogTypeId=="N"){
+ taskList.each{taskMap ->
+ if(taskMap.custRequestTypeId=="RF_PROD_BACKLOG"){
+ resultList.add(taskMap);
+ }
+ }
+ }
+ } else {
+ taskList.each { taskMap ->
+ resultList.add(taskMap);
+ }
+ }
+ // Check party assigned
+ if (partyId){
+ assignedList = resultList;
+ resultList = [];
+ assignedList.each { assignedMap ->
+ workEffortId = assignedMap.taskId;
+ assignToList = delegator.findByAnd("WorkEffortPartyAssignment",["workEffortId" : workEffortId, "partyId" : partyId]);
+ if (assignToList) {
+ assignedMap.partyId = assignToList[0].partyId;
+ resultList.add(assignedMap);
+ }
+ }
+ } else {
+ assignedList = resultList;
+ resultList = [];
+ assignedList.each { assignedMap ->
+ workEffortId = assignedMap.taskId;
+ assignToList = delegator.findByAnd("WorkEffortPartyAssignment",["workEffortId" : workEffortId]);
+ if (assignToList) {
+ assignedMap.partyId = assignToList[0].partyId;
+ resultList.add(assignedMap);
+ } else {
+ resultList.add(assignedMap);
+ }
+ }
+ }
+
+ resultList.each{resultMap ->
+ if (resultMap.taskTypeId=="SCRUM_TASK_IMPL"){
+ implementTaskList.add(resultMap);
+ }
+ if (resultMap.taskTypeId=="SCRUM_TASK_INST"){
+ installTaskList.add(resultMap);
+ }
+ if (resultMap.taskTypeId=="SCRUM_TASK_TEST"){
+ testTaskList.add(resultMap);
+ }
+ if (resultMap.taskTypeId=="SCRUM_TASK_ERROR"){
+ errorTaskList.add(resultMap);
+ }
+ }
+
+ if (implementTaskList){
+ context.implementTaskList = implementTaskList;
+ }
+ if (installTaskList){
+ context.installTaskList = installTaskList;
+ }
+ if (testTaskList){
+ context.testTaskList = testTaskList;
+ }
+ if (errorTaskList){
+ context.errorTaskList = errorTaskList;
+ }
+}
diff --git a/scrum/webapp/scrum/WEB-INF/actions/ListCurrentProducts.groovy b/scrum/webapp/scrum/WEB-INF/actions/ListCurrentProducts.groovy
new file mode 100644
index 000000000..2afc201da
--- /dev/null
+++ b/scrum/webapp/scrum/WEB-INF/actions/ListCurrentProducts.groovy
@@ -0,0 +1,202 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+import org.ofbiz.entity.condition.*;
+import org.ofbiz.base.util.*;
+import org.ofbiz.entity.util.EntityUtil;
+
+roleTypeId = null;
+paramCond = [];
+products = [];
+productId = parameters.productId;
+internalName = parameters.internalName;
+statusId = parameters.statusId;
+if ("Any".equals(statusId)) {
+ statusId = null;
+}
+partyId = parameters.partyId;
+
+if(!security.hasEntityPermission("SCRUM", "_ADMIN", session)){
+ if(security.hasEntityPermission("SCRUM_PRODUCT", "_ADMIN", session)){
+ roleTypeId = "PRODUCT_OWNER";
+ }
+}
+
+if (userLogin) {
+ if(UtilValidate.isNotEmpty(partyId)){
+ paramCond.add(EntityCondition.makeCondition("partyId", EntityOperator.EQUALS, partyId));
+ }
+ if(UtilValidate.isNotEmpty(productId)){
+ paramCond.add(EntityCondition.makeCondition("productId", EntityOperator.LIKE, productId + "%"));
+ }
+ if(UtilValidate.isNotEmpty(internalName)){
+ paramCond.add(EntityCondition.makeCondition("internalName", EntityOperator.LIKE, "%" + internalName + "%"));
+ }
+ if(UtilValidate.isNotEmpty(statusId)){
+ paramCond.add(EntityCondition.makeCondition("statusId", EntityOperator.EQUALS, statusId));
+ }
+
+ paramCond.add(EntityCondition.makeCondition("productTypeId", EntityOperator.EQUALS, "SCRUM_ITEM"));
+ paramCond.add(EntityCondition.makeCondition("roleTypeId", EntityOperator.EQUALS, "PRODUCT_OWNER_COMP"));
+ paramCond.add(EntityCondition.makeCondition("thruDate", EntityOperator.EQUALS, null));
+
+ cond = EntityCondition.makeCondition(paramCond, EntityOperator.AND);
+
+ allProducts = delegator.findList("ProductAndRole", cond, null, ["groupName", "internalName"], null, false);
+
+ securityGroupCond = EntityCondition.makeCondition([
+ EntityCondition.makeCondition ("partyId", EntityOperator.EQUALS, userLogin.partyId),
+ EntityCondition.makeCondition ("partyStatusId", EntityOperator.NOT_EQUAL, "PARTY_DISABLED"),
+ EntityCondition.makeCondition ("thruDate", EntityOperator.EQUALS, null)
+ ], EntityJoinOperator.AND);
+ fields = new HashSet(["partyId", "groupId"]);
+ partyAndSecurityGroupList = delegator.findList("ScrumMemberUserLoginAndSecurityGroup", securityGroupCond, fields, ["partyId"], null, false);
+ context.partyAndSecurityGroupList = partyAndSecurityGroupList;
+ boolean addAllProducts = false;
+ allProducts.each { product ->
+ product = product.getAllFields();
+ productMap = delegator.findByPrimaryKey("Product", ["productId" : product.productId]);
+ product.put("longDescription",productMap.longDescription)
+ if(security.hasEntityPermission("SCRUM", "_ADMIN", session)){
+ addAllProducts = true;
+ }else{
+ ismember = false;
+ if (partyAndSecurityGroupList) {
+ groupId = partyAndSecurityGroupList[0].groupId;
+ if ("SCRUM_PRODUCT_OWNER".equals(groupId)) {
+ productAndRoleList = delegator.findByAnd("ProductRole", ["productId" : product.productId, "partyId" : userLogin.partyId, "thruDate" : null]);
+ if (productAndRoleList) {
+ productAndRoleList.each { productAndRoleMap ->
+ productIdInner = productAndRoleMap.productId;
+ if (productIdInner.equals(product.productId)) {
+ ismember = true;
+ }
+ }
+ }
+ } else if ("SCRUM_STAKEHOLDER".equals(groupId)) {
+ // check in company relationship.
+ scrumRolesCond = EntityCondition.makeCondition([
+ EntityCondition.makeCondition ("partyId", EntityOperator.EQUALS, userLogin.partyId),
+ EntityCondition.makeCondition ("roleTypeId", EntityOperator.EQUALS, "STAKEHOLDER"),
+ EntityCondition.makeCondition ("partyStatusId", EntityOperator.NOT_EQUAL, "PARTY_DISABLED"),
+ EntityCondition.makeCondition ("thruDate", EntityOperator.EQUALS, null)
+ ], EntityJoinOperator.AND);
+ scrumRolesPersonAndCompanyList = delegator.findList("ScrumRolesPersonAndCompany", scrumRolesCond, null, null, null, false);
+ productRoleList = delegator.findByAnd("ProductRole", ["partyId" : scrumRolesPersonAndCompanyList[0].partyIdFrom, "roleTypeId" : "PRODUCT_OWNER_COMP", "thruDate" : null]);
+ if (productRoleList) {
+ productRoleList.each { productRoleMap ->
+ stakeholderProduct = productRoleMap.productId;
+ if (stakeholderProduct.equals(product.productId)) {
+ ismember = true;
+ }
+ }
+ }
+ //check in product.
+ if (ismember == false) {
+ productAndRoleList = delegator.findByAnd("ProductAndRole", ["productId" : product.productId, "partyId" : userLogin.partyId
+ , "roleTypeId" : "STAKEHOLDER", "statusId" : "PRODUCT_ACTIVE", "thruDate" : null]);
+ if (productAndRoleList) {
+ ismember = true;
+ }
+ }
+ } else if ("SCRUM_MASTER".equals(groupId)) {
+ //check in product.
+ productRoleList = [];
+ productRoleList = delegator.findByAnd("ProductAndRole", ["productId" : product.productId, "partyId" : userLogin.partyId
+ , "roleTypeId" : "SCRUM_MASTER", "statusId" : "PRODUCT_ACTIVE", "thruDate" : null]);
+ if (productRoleList) {
+ ismember = true;
+ }
+ //check in project.
+ if (ismember == false) {
+ projects = [];
+ projects = delegator.findByAnd("WorkEffortAndProduct", ["productId" : product.productId, "workEffortTypeId" : "SCRUM_PROJECT", "currentStatusId" : "SPJ_ACTIVE"]);
+ if (projects) {
+ projects.each { project ->
+ projectPartyAssignment = delegator.findByAnd("WorkEffortPartyAssignment", ["partyId" : userLogin.partyId, "workEffortId" : project.workEffortId]);
+ if (projectPartyAssignment) {
+ ismember = true;
+ }
+ }
+ }
+ }
+ //check in sprint.
+ if (ismember == false) {
+ projects.each { project ->
+ allSprintList = [];
+ allSprintList = delegator.findByAnd("WorkEffort", ["workEffortParentId" : project.workEffortId, "currentStatusId" : "SPRINT_ACTIVE"]);
+ allSprintList.each { SprintListMap ->
+ sprintId = SprintListMap.workEffortId;
+ workEffortPartyAssignment = delegator.findByAnd("WorkEffortPartyAssignment", ["partyId" : userLogin.partyId, "workEffortId" : sprintId])
+ if (workEffortPartyAssignment) {
+ ismember = true;
+ }
+ }
+ }
+ }
+ } else {
+ projects = [];
+ projects = delegator.findByAnd("WorkEffortAndProduct", ["productId" : product.productId, "workEffortTypeId" : "SCRUM_PROJECT", "currentStatusId" : "SPJ_ACTIVE"]);
+ if (projects) {
+ projects.each { project ->
+ allSprintList = [];
+ allSprintList = delegator.findByAnd("WorkEffort", ["workEffortParentId" : project.workEffortId, "currentStatusId" : "SPRINT_ACTIVE"]);
+ allSprintList.each { SprintListMap ->
+ sprintId = SprintListMap.workEffortId;
+ workEffortPartyAssignment = delegator.findByAnd("WorkEffortPartyAssignment", ["partyId" : userLogin.partyId, "workEffortId" : sprintId])
+ if (workEffortPartyAssignment) {
+ ismember = true;
+ }
+ }
+ }
+ }
+ if (ismember == false) {
+ exprBldr = [EntityCondition.makeCondition("statusId", EntityOperator.EQUALS, "CRQ_REVIEWED"),
+ EntityCondition.makeCondition("statusId", EntityOperator.EQUALS, "CRQ_REOPENED")];
+ andExprs = [EntityCondition.makeCondition("productId", EntityOperator.EQUALS, product.productId),
+ EntityCondition.makeCondition("currentStatusId", EntityOperator.EQUALS, "STS_CREATED"),
+ EntityCondition.makeCondition(exprBldr, EntityOperator.OR)];
+ unplannedBacklogCond = EntityCondition.makeCondition(andExprs, EntityOperator.AND);
+ unplannedBacklogList = delegator.findList("UnPlannedBacklogsAndTasks", unplannedBacklogCond, null,null ,null, false);
+ if (unplannedBacklogList) {
+ unplannedBacklogList.each { unplannedMap ->
+ workEffortId = unplannedMap.workEffortId;
+ workEffortPartyAssignment = delegator.findByAnd("WorkEffortPartyAssignment", ["partyId" : userLogin.partyId, "workEffortId" : workEffortId])
+ if (workEffortPartyAssignment) {
+ ismember = true;
+ }
+ }
+ }
+ }
+ }
+
+ if (ismember) {
+ products.add(product);
+ }
+ }
+ }
+ if(addAllProducts)
+ products.add(product);
+ }
+} else {
+ Debug.logError("Party ID missing =========>>> : null ", "");
+}
+
+if (products){
+ context.listIt = products;
+}
\ No newline at end of file
diff --git a/scrum/webapp/scrum/WEB-INF/actions/ListCurrentSprints.groovy b/scrum/webapp/scrum/WEB-INF/actions/ListCurrentSprints.groovy
new file mode 100644
index 000000000..1b1867dbd
--- /dev/null
+++ b/scrum/webapp/scrum/WEB-INF/actions/ListCurrentSprints.groovy
@@ -0,0 +1,228 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import org.ofbiz.entity.condition.*;
+import org.ofbiz.base.util.*;
+
+cond = EntityCondition.makeCondition([
+ EntityCondition.makeCondition ("projectTypeId", EntityOperator.EQUALS, "SCRUM_PROJECT"),
+ EntityCondition.makeCondition ("projectStatusId", EntityOperator.NOT_EQUAL, "SPJ_CLOSED")
+ ], EntityJoinOperator.AND);
+securityGroupCond = EntityCondition.makeCondition([
+ EntityCondition.makeCondition ("partyId", EntityOperator.EQUALS, userLogin.partyId),
+ EntityCondition.makeCondition ("partyStatusId", EntityOperator.NOT_EQUAL, "PARTY_DISABLED"),
+ EntityCondition.makeCondition ("thruDate", EntityOperator.EQUALS, null)
+ ], EntityJoinOperator.AND);
+fields = new HashSet(["partyId", "groupId"]);
+
+allSprints = delegator.findList("ProjectSprint", cond, null, ["projectName", "-sprintActualStartDate"], null, false);
+partyAndSecurityGroupList = delegator.findList("ScrumMemberUserLoginAndSecurityGroup", securityGroupCond, fields, ["partyId"], null, false);
+oldProjectId = null;
+newProjectId = null;
+countSprint = 0;
+sprints = [];
+allSprints.each { sprint ->
+ newProjectId = sprint.projectId;
+ productAndRole = delegator.findByAnd("ProductAndRole", ["roleTypeId" : "PRODUCT_OWNER_COMP", "productId" : sprint.productId], null);
+ companyId = "";
+ companyName = "";
+ if (productAndRole.size() > 0) {
+ companyName = productAndRole.get(0).groupName;
+ companyId = productAndRole.get(0).partyId;
+ }
+ sprint = sprint.getAllFields();
+ sprint.put("companyId", companyId)
+ sprint.put("companyName", companyName)
+ product = delegator.findByPrimaryKey("Product",["productId" : sprint.productId]);
+ productName = "";
+ if (product != null) productName = product.internalName;
+ sprint.put("productName", productName);
+ //sprint.add("companyName", companyName, "String")
+ if (oldProjectId != newProjectId) {
+ oldProjectId = newProjectId;
+ countSprint = 0;
+ ismember = false;
+ if (partyAndSecurityGroupList) {
+ groupId = partyAndSecurityGroupList[0].groupId;
+ if ("SCRUM_PRODUCT_OWNER".equals(groupId)) {
+ productAndRoleList = delegator.findByAnd("ProductRole", ["productId" : sprint.productId, "partyId" : partyAndSecurityGroupList.getAt(0).partyId, "thruDate" : null]);
+ if (productAndRoleList) {
+ ismember = true;
+ }
+ }else if("SCRUM_STAKEHOLDER".equals(groupId)) {
+ // check in company relationship.
+ scrumRolesCond = EntityCondition.makeCondition([
+ EntityCondition.makeCondition ("partyId", EntityOperator.EQUALS, userLogin.partyId),
+ EntityCondition.makeCondition ("roleTypeId", EntityOperator.EQUALS, "STAKEHOLDER"),
+ EntityCondition.makeCondition ("partyStatusId", EntityOperator.NOT_EQUAL, "PARTY_DISABLED"),
+ EntityCondition.makeCondition ("thruDate", EntityOperator.EQUALS, null)
+ ], EntityJoinOperator.AND);
+ scrumRolesPersonAndCompanyList = delegator.findList("ScrumRolesPersonAndCompany", scrumRolesCond, null, null, null, false);
+ productRoleList = delegator.findByAnd("ProductRole", ["partyId" : scrumRolesPersonAndCompanyList[0].partyIdFrom, "roleTypeId" : "PRODUCT_OWNER_COMP", "thruDate" : null]);
+ if (productRoleList) {
+ productRoleList.each { productRoleMap ->
+ stakeholderProduct = productRoleMap.productId;
+ if (stakeholderProduct.equals(sprint.productId)) {
+ ismember = true;
+ }
+ }
+ }
+ //check in product.
+ if (ismember == false) {
+ productAndRoleList = delegator.findByAnd("ProductAndRole", ["productId" : sprint.productId, "partyId" : userLogin.partyId
+ , "roleTypeId" : "STAKEHOLDER", "statusId" : "PRODUCT_ACTIVE", "thruDate" : null]);
+ if (productAndRoleList) {
+ ismember = true;
+ }
+ }
+ } else if("SCRUM_MASTER".equals(groupId)) {
+ //check in product
+ productRoleList = [];
+ productRoleList = delegator.findByAnd("ProductAndRole", ["productId" : sprint.productId, "partyId" : userLogin.partyId
+ , "roleTypeId" : "SCRUM_MASTER", "statusId" : "PRODUCT_ACTIVE", "thruDate" : null]);
+ if (productRoleList) {
+ ismember = true;
+ }
+ //check in project.
+ if (ismember == false) {
+ projectPartyAssignment = delegator.findByAnd("WorkEffortPartyAssignment", ["workEffortId" : sprint.projectId, "partyId" : userLogin.partyId]);
+ if (projectPartyAssignment) {
+ ismember = true;
+ }
+ }
+ //check in sprint.
+ if (ismember == false) {
+ allSprintList = [];
+ allSprintList = delegator.findByAnd("WorkEffort", ["workEffortParentId" : sprint.projectId]);
+ allSprintList.each { SprintListMap ->
+ sprintId = SprintListMap.workEffortId;
+ workEffortPartyAssignment = delegator.findByAnd("WorkEffortPartyAssignment", ["workEffortId" : sprintId, "partyId" : userLogin.partyId]);
+ if (workEffortPartyAssignment) {
+ ismember = true;
+ }
+ }
+ }
+ } else {
+ allSprintList = [];
+ allSprintList = delegator.findByAnd("WorkEffort", ["workEffortParentId" : sprint.projectId]);
+ allSprintList.each { SprintListMap ->
+ sprintId = SprintListMap.workEffortId;
+ workEffortPartyAssignment = delegator.findByAnd("WorkEffortPartyAssignment", ["workEffortId" : sprintId, "partyId" : userLogin.partyId]);
+ if (workEffortPartyAssignment) {
+ ismember = true;
+ }
+ }
+ }
+ }
+ if (security.hasEntityPermission("SCRUM", "_ADMIN", session)
+ || ((security.hasEntityPermission("SCRUM", "_ROLE_ADMIN", session) || security.hasEntityPermission("SCRUM", "_ROLE_VIEW", session)
+ || security.hasEntityPermission("SCRUM_PROJECT", "_ROLE_ADMIN", session) || security.hasEntityPermission("SCRUM_PROJECT", "_ROLE_VIEW", session)
+ || security.hasEntityPermission("SCRUM_PROJECT", "_VIEW", session)) && ismember)) {
+ sprints.add(sprint);
+ countSprint++;
+ }
+ } else {
+ if (countSprint < 4) {
+ ismember = false;
+ if (partyAndSecurityGroupList) {
+ groupId = partyAndSecurityGroupList[0].groupId;
+ if ("SCRUM_PRODUCT_OWNER".equals(groupId)) {
+ productAndRoleList = delegator.findByAnd("ProductRole", ["productId" : sprint.productId, "partyId" : partyAndSecurityGroupList.getAt(0).partyId, "thruDate" : null]);
+ if (productAndRoleList) {
+ ismember = true;
+ }
+ }else if("SCRUM_STAKEHOLDER".equals(groupId)) {
+ // check in company relationship.
+ scrumRolesCond = EntityCondition.makeCondition([
+ EntityCondition.makeCondition ("partyId", EntityOperator.EQUALS, userLogin.partyId),
+ EntityCondition.makeCondition ("roleTypeId", EntityOperator.EQUALS, "STAKEHOLDER"),
+ EntityCondition.makeCondition ("partyStatusId", EntityOperator.NOT_EQUAL, "PARTY_DISABLED"),
+ EntityCondition.makeCondition ("thruDate", EntityOperator.EQUALS, null)
+ ], EntityJoinOperator.AND);
+ scrumRolesPersonAndCompanyList = delegator.findList("ScrumRolesPersonAndCompany", scrumRolesCond, null, null, null, false);
+ productRoleList = delegator.findByAnd("ProductRole", ["partyId" : scrumRolesPersonAndCompanyList[0].partyIdFrom, "roleTypeId" : "PRODUCT_OWNER_COMP", "thruDate" : null]);
+ if (productRoleList) {
+ productRoleList.each { productRoleMap ->
+ stakeholderProduct = productRoleMap.productId;
+ if (stakeholderProduct.equals(sprint.productId)) {
+ ismember = true;
+ }
+ }
+ }
+ //check in product.
+ if (ismember == false) {
+ productAndRoleList = delegator.findByAnd("ProductAndRole", ["productId" : sprint.productId, "partyId" : userLogin.partyId
+ , "roleTypeId" : "STAKEHOLDER", "statusId" : "PRODUCT_ACTIVE", "thruDate" : null]);
+ if (productAndRoleList) {
+ ismember = true;
+ }
+ }
+ } else if("SCRUM_MASTER".equals(groupId)) {
+ //check in product
+ productRoleList = [];
+ productRoleList = delegator.findByAnd("ProductAndRole", ["productId" : sprint.productId, "partyId" : userLogin.partyId
+ , "roleTypeId" : "SCRUM_MASTER", "statusId" : "PRODUCT_ACTIVE", "thruDate" : null]);
+ if (productRoleList) {
+ ismember = true;
+ }
+ //check in project.
+ if (ismember == false) {
+ projectPartyAssignment = delegator.findByAnd("WorkEffortPartyAssignment", ["workEffortId" : sprint.projectId, "partyId" : userLogin.partyId]);
+ if (projectPartyAssignment) {
+ ismember = true;
+ }
+ }
+ //check in sprint.
+ if (ismember == false) {
+ allSprintList = [];
+ allSprintList = delegator.findByAnd("WorkEffort", ["workEffortParentId" : sprint.projectId]);
+ allSprintList.each { SprintListMap ->
+ sprintId = SprintListMap.workEffortId;
+ workEffortPartyAssignment = delegator.findByAnd("WorkEffortPartyAssignment", ["workEffortId" : sprintId, "partyId" : userLogin.partyId]);
+ if (workEffortPartyAssignment) {
+ ismember = true;
+ }
+ }
+ }
+ } else {
+ allSprintList = [];
+ allSprintList = delegator.findByAnd("WorkEffort", ["workEffortParentId" : sprint.projectId]);
+ allSprintList.each { SprintListMap ->
+ sprintId = SprintListMap.workEffortId;
+ workEffortPartyAssignment = delegator.findByAnd("WorkEffortPartyAssignment", ["workEffortId" : sprintId, "partyId" : userLogin.partyId]);
+ if (workEffortPartyAssignment) {
+ ismember = true;
+ }
+ }
+ }
+ }
+ if (security.hasEntityPermission("SCRUM", "_ADMIN", session)
+ || ((security.hasEntityPermission("SCRUM", "_ROLE_ADMIN", session) || security.hasEntityPermission("SCRUM", "_ROLE_VIEW", session)
+ || security.hasEntityPermission("SCRUM_PROJECT", "_ROLE_ADMIN", session) || security.hasEntityPermission("SCRUM_PROJECT", "_ROLE_VIEW", session)
+ || security.hasEntityPermission("SCRUM_PROJECT", "_VIEW", session)) && ismember)) {
+ sprints.add(sprint);
+ countSprint++;
+ }
+ }
+ }
+}
+if (sprints) {
+ sprints = UtilMisc.sortMaps(sprints, ["companyName", "projectName", "productName"])
+ context.sprints = sprints;
+}
diff --git a/scrum/webapp/scrum/WEB-INF/actions/ListRevision.groovy b/scrum/webapp/scrum/WEB-INF/actions/ListRevision.groovy
new file mode 100644
index 000000000..cb2d2bb54
--- /dev/null
+++ b/scrum/webapp/scrum/WEB-INF/actions/ListRevision.groovy
@@ -0,0 +1,92 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*/
+
+import org.ofbiz.base.util.UtilMisc;
+import org.ofbiz.base.util.Debug;
+import org.ofbiz.entity.util.*;
+import org.ofbiz.entity.condition.*;
+
+custRequestList = [];
+custAndWorkEffortList = [];
+revisionList = [];
+listIt = [];
+//for productId and custRequestId
+if ((parameters.productId != null)||(parameters.custRequestId != null)||(parameters.workEffortId != null)||(viewIndex > 0)) {
+ orList = [];
+ orList.add(EntityCondition.makeCondition("custRequestTypeId", EntityOperator.EQUALS, "RF_PROD_BACKLOG"));
+ orList.add(EntityCondition.makeCondition("custRequestTypeId", EntityOperator.EQUALS, "RF_UNPLAN_BACKLOG"));
+ andList = [];
+ if (parameters.productId) {
+ andList.add(EntityCondition.makeCondition("productId", EntityOperator.LIKE, parameters.productId + "%"));
+ }
+ if (parameters.custRequestId) {
+ andList.add(EntityCondition.makeCondition("custRequestId", EntityOperator.LIKE, parameters.custRequestId + "%"));
+ }
+ andList.add(EntityCondition.makeCondition(orList, EntityOperator.OR));
+ custRequestCond = EntityCondition.makeCondition(andList, EntityOperator.AND);
+ custRequestList = delegator.findList("CustRequestAndCustRequestItem", custRequestCond, null,null ,null, false);
+
+ custRequestIds = EntityUtil.getFieldListFromEntityList(custRequestList, "custRequestId", true);
+ taskOrList = [];
+ taskOrList.add(EntityCondition.makeCondition("workEffortTypeId", EntityOperator.EQUALS, "SCRUM_TASK_ERROR"));
+ taskOrList.add(EntityCondition.makeCondition("workEffortTypeId", EntityOperator.EQUALS, "SCRUM_TASK_TEST"));
+ taskOrList.add(EntityCondition.makeCondition("workEffortTypeId", EntityOperator.EQUALS, "SCRUM_TASK_IMPL"));
+ taskOrList.add(EntityCondition.makeCondition("workEffortTypeId", EntityOperator.EQUALS, "SCRUM_TASK_INST"));
+ taskAndList = [];
+ taskAndList.add(EntityCondition.makeCondition("custRequestId", EntityOperator.IN, custRequestIds));
+ taskAndList.add(EntityCondition.makeCondition(taskOrList, EntityOperator.OR));
+ custAndWorkEffortCond = EntityCondition.makeCondition(taskAndList, EntityOperator.AND);
+ custAndWorkEffortList = delegator.findList("CustRequestAndWorkEffort", custAndWorkEffortCond, null,null ,null, false);
+
+ //for workEffortId
+ workEffortIds = EntityUtil.getFieldListFromEntityList(custAndWorkEffortList, "workEffortId", true);
+ revisionAndList = [];
+ if (parameters.workEffortId) {
+ revisionAndList.add(EntityCondition.makeCondition("workEffortId", EntityOperator.LIKE, parameters.workEffortId + "%"));
+ } else {
+ revisionAndList.add(EntityCondition.makeCondition("workEffortId", EntityOperator.IN, workEffortIds));
+ }
+ revisionAndList.add(EntityCondition.makeCondition("workEffortContentTypeId", EntityOperator.EQUALS, "TASK_SUB_INFO"));
+ revisionCond = EntityCondition.makeCondition(revisionAndList, EntityOperator.AND);
+ revisionList = delegator.findList("WorkEffortAndContentDataResource", revisionCond, null,["-fromDate"] ,null, false);
+
+ if (revisionList) {
+ revisionList.each { revisionMap ->
+ inputMap = [:];
+ inputMap.workEffortId = revisionMap.workEffortId;
+ inputMap.contentId = revisionMap.contentId;
+ inputMap.fromDate = revisionMap.fromDate;
+ inputMap.contentName = revisionMap.contentName;
+ inputMap.description = revisionMap.description;
+ inputMap.drObjectInfo = revisionMap.drObjectInfo;
+ custAndWorkEfffList = delegator.findByAnd("CustRequestAndWorkEffort", ["workEffortId" : revisionMap.workEffortId]);
+ if (custAndWorkEfffList) {
+ custAndWorkEfffMap = custAndWorkEfffList[0];
+ custAndCustItemList = delegator.findByAnd("CustRequestAndCustRequestItem", ["custRequestId" : custAndWorkEfffMap.custRequestId]);
+ if (custAndCustItemList) {
+ custAndCustItemMap = custAndCustItemList[0];
+ inputMap.productId = custAndCustItemMap.productId;
+ inputMap.custRequestId = custAndCustItemMap.custRequestId;
+ }
+ }
+ listIt.add(inputMap);
+ }
+ context.listIt = listIt;
+ }
+}
diff --git a/scrum/webapp/scrum/WEB-INF/actions/ListScrumResource.groovy b/scrum/webapp/scrum/WEB-INF/actions/ListScrumResource.groovy
new file mode 100644
index 000000000..68e01fd25
--- /dev/null
+++ b/scrum/webapp/scrum/WEB-INF/actions/ListScrumResource.groovy
@@ -0,0 +1,55 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import java.util.*;
+import java.lang.*;
+import org.ofbiz.entity.*;
+import org.ofbiz.entity.condition.*;
+import org.ofbiz.entity.util.*;
+import org.ofbiz.base.util.*;
+import javolution.util.FastMap;
+import javolution.util.FastList;
+import org.ofbiz.entity.condition.EntityFunction;
+
+def module = "ListScrumResource.groovy";
+
+performFindInMap = [:];
+performFindInMap.entityName = "ScrumMemberUserLoginAndSecurityGroup";
+inputFields = [:];
+outputList = [];
+
+inputFields.putAll(parameters);
+performFindInMap.noConditionFind = "Y";
+performFindInMap.inputFields = inputFields;
+performFindInMap.orderBy = parameters.sortField;
+if (parameters.sortField) {
+ performFindInMap.orderBy = "lastName";
+}
+performFindResults = dispatcher.runSync("performFind", performFindInMap);
+resultList = performFindResults.listIt.getCompleteList();
+performFindResults.listIt.close();
+
+resultList.each() { result ->
+ if (!"N".equals(result.enabled)) {
+ outputList.add(result);
+ }
+}
+if (outputList) {
+ context.listIt = outputList;
+}
\ No newline at end of file
diff --git a/scrum/webapp/scrum/WEB-INF/actions/ListScrumRolesPersonAndCompany.groovy b/scrum/webapp/scrum/WEB-INF/actions/ListScrumRolesPersonAndCompany.groovy
new file mode 100644
index 000000000..30c38c331
--- /dev/null
+++ b/scrum/webapp/scrum/WEB-INF/actions/ListScrumRolesPersonAndCompany.groovy
@@ -0,0 +1,67 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*/
+
+import org.ofbiz.entity.condition.*;
+import org.ofbiz.base.util.*;
+import org.ofbiz.entity.util.EntityUtil;
+
+productId = parameters.productId
+personAndCompanyList = [];
+
+if (productId) {
+ productRoleList = delegator.findByAnd("ProductRole", ["productId" : productId, "roleTypeId" : "PRODUCT_OWNER_COMP"]);
+ if (productRoleList) {
+ personAndComCond = EntityCondition.makeCondition([
+ EntityCondition.makeCondition ("roleTypeId", EntityOperator.EQUALS, "PRODUCT_OWNER"),
+ EntityCondition.makeCondition ("partyIdFrom", EntityOperator.EQUALS, productRoleList[0].partyId),
+ EntityCondition.makeCondition ("partyStatusId", EntityOperator.NOT_EQUAL, "PARTY_DISABLED"),
+ EntityCondition.makeCondition ("thruDate", EntityOperator.EQUALS, null)
+ ], EntityJoinOperator.AND);
+ personAndCompanyList = delegator.findList("ScrumRolesPersonAndCompany", personAndComCond, null, ["groupName"], null, false);
+ }
+}
+if (personAndCompanyList) {
+ context.companyCurrentList = personAndCompanyList;
+ context.companyCurrent = personAndCompanyList[0].partyId;
+ } else {
+ context.companyCurrent = null;
+}
+
+// Get owner with security group
+scrumRolesPersonAndCompanyList = [];
+personAndComConds = EntityCondition.makeCondition([
+ EntityCondition.makeCondition ("roleTypeId", EntityOperator.EQUALS, "PRODUCT_OWNER"),
+ EntityCondition.makeCondition ("partyStatusId", EntityOperator.NOT_EQUAL, "PARTY_DISABLED"),
+ EntityCondition.makeCondition ("thruDate", EntityOperator.EQUALS, null)
+ ], EntityJoinOperator.AND);
+personAndCompanyList = delegator.findList("ScrumRolesPersonAndCompany", personAndComConds, null, ["groupName"], null, false);
+if (personAndCompanyList) {
+ personAndCompanyList.each { personAndCompanyMap ->
+ partyId = personAndCompanyMap.partyId;
+ securityGroupCond = EntityCondition.makeCondition([
+ EntityCondition.makeCondition ("partyId", EntityOperator.EQUALS, partyId),
+ EntityCondition.makeCondition ("partyStatusId", EntityOperator.NOT_EQUAL, "PARTY_DISABLED")
+ ], EntityJoinOperator.AND);
+ securityGroupList = delegator.findList("ScrumMemberUserLoginAndSecurityGroup", securityGroupCond, null, null, null, false);
+ if (securityGroupList) {
+ scrumRolesPersonAndCompanyList.add(personAndCompanyMap);
+ }
+ }
+ }
+context.scrumRolesPersonAndCompanyList = scrumRolesPersonAndCompanyList;
\ No newline at end of file
diff --git a/scrum/webapp/scrum/WEB-INF/actions/ListTimeSheets.groovy b/scrum/webapp/scrum/WEB-INF/actions/ListTimeSheets.groovy
new file mode 100644
index 000000000..132df558e
--- /dev/null
+++ b/scrum/webapp/scrum/WEB-INF/actions/ListTimeSheets.groovy
@@ -0,0 +1,82 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*/
+
+import org.ofbiz.entity.*;
+import org.ofbiz.entity.util.*;
+import org.ofbiz.entity.condition.*;
+import org.ofbiz.base.util.Debug;
+import org.ofbiz.base.util.UtilDateTime;
+
+// get all timesheets of all user, including the planned hours
+timesheets = [];
+performFindInMap = [:];
+inputFields = [:];
+performFindInMap.entityName = "Timesheet";
+
+if (!parameters.noConditionFind) {
+ parameters.noConditionFind = "N"
+}
+inputFields.putAll(parameters);
+performFindInMap.inputFields = inputFields;
+performFindInMap.orderBy = "fromDate DESC";
+performFindResults = dispatcher.runSync("performFind", performFindInMap);
+if (performFindResults.listSize > 0) {
+ timesheetsDb = performFindResults.listIt.getCompleteList();
+ performFindResults.listIt.close();
+
+ timesheetsDb.each { timesheetDb ->
+ //get hours from EmplLeave;
+ findOpts = new EntityFindOptions(true, EntityFindOptions.TYPE_SCROLL_INSENSITIVE, EntityFindOptions.CONCUR_READ_ONLY, true);
+ leaveExprsList = [];
+ leaveExprsList.add(EntityCondition.makeCondition("fromDate", EntityOperator.GREATER_THAN_EQUAL_TO, timesheetDb.fromDate));
+ leaveExprsList.add(EntityCondition.makeCondition("fromDate", EntityOperator.LESS_THAN_EQUAL_TO, timesheetDb.thruDate));
+ leaveExprsList.add(EntityCondition.makeCondition("partyId", EntityOperator.EQUALS, timesheetDb.partyId));
+ emplLeaveList = delegator.find("EmplLeave", EntityCondition.makeCondition(leaveExprsList, EntityOperator.AND), null, null, null, findOpts);
+ leaveHours = 0.00;
+
+ while ((emplLeaveMap = emplLeaveList.next())) {
+ emplLeaveEntry = emplLeaveMap;
+ inputData = [:];
+ inputData.userLogin = parameters.userLogin;
+ inputData.partyId = emplLeaveEntry.partyId;
+ inputData.leaveTypeId = emplLeaveEntry.leaveTypeId;
+ inputData.fromDate = emplLeaveEntry.fromDate;
+ resultHour = dispatcher.runSync("getPartyLeaveHoursForDate", inputData);
+ if (resultHour) {
+ leaveActualHours = resultHour.hours.doubleValue();
+ leaveHours += leaveActualHours;
+ }
+ }
+ //get hours from TimeEntry;
+ timesheet = [:];
+ timesheet.putAll(timesheetDb);
+ entries = timesheetDb.getRelated("TimeEntry");
+ hours = 0.00;
+ entries.each { timeEntry ->
+ if (timeEntry.hours) {
+ hours += timeEntry.hours.doubleValue();
+ }
+ }
+ timesheet.weekNumber = UtilDateTime.weekNumber(timesheetDb.fromDate);
+ timesheet.hours = hours + leaveHours;
+ timesheets.add(timesheet);
+ emplLeaveList.close();
+ }
+ context.timesheets = timesheets;
+}
diff --git a/scrum/webapp/scrum/WEB-INF/actions/ListUnplanBacklog.groovy b/scrum/webapp/scrum/WEB-INF/actions/ListUnplanBacklog.groovy
new file mode 100644
index 000000000..060395ef9
--- /dev/null
+++ b/scrum/webapp/scrum/WEB-INF/actions/ListUnplanBacklog.groovy
@@ -0,0 +1,49 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*/
+
+import javolution.util.FastList;
+import org.ofbiz.entity.condition.*;
+import org.ofbiz.base.util.*;
+
+taskStatusId = null;
+paraBacklogStatusId = backlogStatusId;
+
+orStsExprs = FastList.newInstance();
+ if (backlogStatusId != "Any") {
+ taskStatusId = "STS_CREATED";
+ orStsExprs.add(EntityCondition.makeCondition("statusId", EntityOperator.EQUALS, "CRQ_REVIEWED"));
+ } else {
+ orStsExprs.add(EntityCondition.makeCondition("statusId", EntityOperator.EQUALS, "CRQ_REVIEWED"));
+ orStsExprs.add(EntityCondition.makeCondition("statusId", EntityOperator.EQUALS, "CRQ_COMPLETED"));
+ }
+orCurentExprs = FastList.newInstance();
+ if (taskStatusId) {
+ orCurentExprs.add(EntityCondition.makeCondition("currentStatusId", EntityOperator.EQUALS, taskStatusId));
+ orCurentExprs.add(EntityCondition.makeCondition("currentStatusId", EntityOperator.EQUALS, null));
+ }
+andExprs = FastList.newInstance();
+ andExprs.add(EntityCondition.makeCondition("productId", EntityOperator.EQUALS, parameters.productId));
+ andExprs.add(EntityCondition.makeCondition("custRequestTypeId", EntityOperator.EQUALS, "RF_UNPLAN_BACKLOG"));
+ andExprs.add(EntityCondition.makeCondition(orStsExprs, EntityOperator.OR));
+ andExprs.add(EntityCondition.makeCondition(orCurentExprs, EntityOperator.OR));
+unplannedBacklogCond = EntityCondition.makeCondition(andExprs, EntityOperator.AND);
+unplannedBacklogList = delegator.findList("UnPlannedBacklogsAndTasks", unplannedBacklogCond, null,["-custRequestId","workEffortTypeId","sequenceNum"],null, false);
+
+context.listIt = unplannedBacklogList;
+context.paraBacklogStatusId = paraBacklogStatusId;
diff --git a/scrum/webapp/scrum/WEB-INF/actions/ProductBilling.groovy b/scrum/webapp/scrum/WEB-INF/actions/ProductBilling.groovy
new file mode 100644
index 000000000..6cf8b793a
--- /dev/null
+++ b/scrum/webapp/scrum/WEB-INF/actions/ProductBilling.groovy
@@ -0,0 +1,90 @@
+/*
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import org.ofbiz.entity.*;
+import org.ofbiz.base.util.*;
+import org.ofbiz.entity.*;
+import org.ofbiz.entity.condition.*;
+import org.ofbiz.entity.util.*;
+import org.ofbiz.base.util.UtilDateTime;
+
+productId = parameters.productId;
+entryExprs =
+ EntityCondition.makeCondition([
+ EntityCondition.makeCondition("productId", EntityOperator.EQUALS, productId),
+ EntityCondition.makeCondition("invoiceId", EntityOperator.NOT_EQUAL, null),
+ ], EntityOperator.AND);
+orderBy = ["-fromDate"];
+// check if latest invoice generated is still in process so allow re-generation to correct errors
+entryIterator = delegator.find("ProjectSprintBacklogTaskAndTimeEntryTimeSheet", entryExprs, null, null, orderBy, null);
+while (entryItem = entryIterator.next()) {
+ invoice = entryItem.getRelatedOne("Invoice");
+ if (invoice.getString("statusId").equals("INVOICE_IN_PROCESS")) {
+ context.partyIdFrom = invoice.partyIdFrom;
+ context.partyId = invoice.partyId;
+ context.invoiceId = invoice.invoiceId;
+ context.invoiceDate = invoice.invoiceDate;
+ break;
+ }
+ }
+entryIterator.close();
+//start of this month
+context.thruDate = UtilDateTime.getMonthStart(UtilDateTime.nowTimestamp());
+
+// build find task conditions
+def taskConds = UtilMisc.toList(EntityCondition.makeCondition("productId", parameters.productId));
+taskConds.add(EntityCondition.makeCondition("invoiceId", null));
+taskConds.add(EntityCondition.makeCondition("timesheetStatusId", "TIMESHEET_COMPLETED"));
+if (parameters.fromDate) {
+ fromDate = parameters.fromDate;
+ if (fromDate.length() < 14) {
+ fromDate = fromDate + " " + "00:00:00.000";
+ }
+ taskConds.add(EntityCondition.makeCondition("fromDate", EntityOperator.GREATER_THAN_EQUAL_TO, Timestamp.valueOf(fromDate)));
+}
+if (parameters.thruDate) {
+ thruDate = parameters.thruDate;
+ if (thruDate.length() < 14) {
+ thruDate = thruDate + " " + "00:00:00.000";
+ }
+ taskConds.add(EntityCondition.makeCondition("fromDate", EntityOperator.LESS_THAN, Timestamp.valueOf(thruDate)));
+} else {
+ taskConds.add(EntityCondition.makeCondition("fromDate", EntityOperator.LESS_THAN, context.thruDate));
+}
+// include meeting ?
+if ("N".equals(includeMeeting)) {
+ taskConds.add(EntityCondition.makeCondition("custRequestTypeId", EntityOperator.NOT_EQUAL, "RF_SCRUM_MEETINGS"));
+}
+// get sprint task list
+def sprintTasks = delegator.findList("ProjectSprintBacklogTaskAndTimeEntryTimeSheet", EntityCondition.makeCondition(taskConds), null, null, null, false);
+
+// get unplanned task list
+def unplannedTasks = delegator.findList("UnPlannedBacklogsTaskAndTimeEntryTimeSheet", EntityCondition.makeCondition(taskConds), null, null, null, false);
+
+def hoursNotYetBilledTasks = [];
+hoursNotYetBilledTasks.addAll(sprintTasks);
+hoursNotYetBilledTasks.addAll(unplannedTasks);
+context.hoursNotYetBilledTasks = UtilMisc.sortMaps(hoursNotYetBilledTasks, ["custRequestId","fromDate"])
+
+// get time entry date
+timeEntryList = UtilMisc.sortMaps(hoursNotYetBilledTasks, ["fromDate"])
+if (!parameters.fromDate && timeEntryList) {
+ context.resultDate = timeEntryList[0].fromDate;
+}
diff --git a/scrum/webapp/scrum/WEB-INF/actions/ProductEmail.groovy b/scrum/webapp/scrum/WEB-INF/actions/ProductEmail.groovy
new file mode 100644
index 000000000..d6224d37d
--- /dev/null
+++ b/scrum/webapp/scrum/WEB-INF/actions/ProductEmail.groovy
@@ -0,0 +1,102 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import java.util.*;
+import java.lang.*;
+import org.ofbiz.base.util.*;
+import org.ofbiz.entity.*;
+import org.ofbiz.base.util.Debug;
+import org.ofbiz.base.util.UtilValidate;
+import org.ofbiz.entity.util.*;
+
+productId = parameters.productId;
+loginPartyId = userLogin.partyId;
+communicationEventId = parameters.communicationEventId;
+now = UtilDateTime.nowTimestamp();
+try{
+ if (UtilValidate.isNotEmpty(loginPartyId)) {
+ if (UtilValidate.isNotEmpty(productId)) {
+ context.product = delegator.findByPrimaryKey("Product",["productId" : productId]);
+ }
+ communicationEvent = delegator.findByPrimaryKey("CommunicationEvent",["communicationEventId" : communicationEventId]);
+ communicationEvent.communicationEventTypeId = "EMAIL_COMMUNICATION";
+ communicationEvent.contactMechTypeId = "EMAIL_ADDRESS";
+ communicationEvent.datetimeStarted = now;
+ checkOwner = delegator.findByAnd("ProductRole",["productId" : productId,"partyId" : loginPartyId,"roleTypeId" : "PRODUCT_OWNER"]);
+ if (checkOwner) {
+ /* for product owner to our company */
+
+ // for owner
+ productRole = delegator.findByAnd("ProductRole",["productId" : productId,"roleTypeId" : "PRODUCT_OWNER"]);
+ context.productOwnerId = productRole[0].partyId
+ parentCom = delegator.findByPrimaryKey("CommunicationEvent",["communicationEventId" : communicationEventId]);
+ if (parentCom) {
+ context.partyIdFrom = productRole[0].partyId;
+ } else {
+ context.partyIdFrom = parentCom.partyIdTo;
+ }
+ resultsIdFrom = dispatcher.runSync("getPartyEmail", ["partyId" : productRole[0].partyId, "userLogin" : userLogin]);
+ if (resultsIdFrom.contactMechId != null) {
+ context.contactMechIdFrom = resultsIdFrom.contactMechId;
+ communicationEvent.contactMechIdFrom = resultsIdFrom.contactMechId;
+ }
+ // for team
+ defaultPartyIdTo = organizationPartyId;
+ resultsIdTo = dispatcher.runSync("getPartyEmail", ["partyId" : defaultPartyIdTo,"contactMechPurposeTypeId" :"SUPPORT_EMAIL", "userLogin" : userLogin]);
+ if (resultsIdTo.contactMechId != null) {
+ context.contactMechIdTo = resultsIdTo.contactMechId;
+ communicationEvent.contactMechIdTo = resultsIdTo.contactMechId;
+ }
+ context.partyIdTo = defaultPartyIdTo;
+ communicationEvent.store();
+ context.communicationEvent = communicationEvent;
+ } else {
+ /* from company to owner */
+
+ // for team
+ defaultPartyIdFrom = organizationPartyId;
+ context.partyIdFrom = defaultPartyIdFrom;
+ resultsIdFrom = dispatcher.runSync("getPartyEmail", ["partyId" : defaultPartyIdFrom,"contactMechPurposeTypeId" :"SUPPORT_EMAIL", "userLogin" : userLogin]);
+ if (resultsIdFrom.contactMechId != null) {
+ context.contactMechIdFrom = resultsIdFrom.contactMechId;
+ communicationEvent.contactMechIdFrom = resultsIdFrom.contactMechId;
+ }
+ // for owner
+ productRole = delegator.findByAnd("ProductRole",["productId" : productId,"roleTypeId" : "PRODUCT_OWNER"]);
+ context.productOwnerId = productRole[0].partyId;
+ parentCom = delegator.findByPrimaryKey("CommunicationEvent",["communicationEventId" : communicationEventId]);
+ if(parentCom){
+ context.partyIdTo = productRole[0].partyId;
+ } else {
+ context.partyIdTo = parentCom.partyIdFrom;
+ }
+ resultsIdTo = dispatcher.runSync("getPartyEmail", ["partyId" : productRole[0].partyId, "userLogin" : userLogin]);
+ if (resultsIdTo.contactMechId != null) {
+ context.contactMechIdTo = resultsIdTo.contactMechId;
+ communicationEvent.contactMechIdTo = resultsIdTo.contactMechId;
+ }
+ communicationEvent.store();
+ context.communicationEvent = communicationEvent;
+ }
+ }
+} catch (exeption) {
+ Debug.logInfo("catch exeption ================" + exeption,"");
+} catch (GenericEntityException e) {
+ Debug.logInfo("catch GenericEntityException ================" + e.getMessage(),"");
+}
diff --git a/scrum/webapp/scrum/WEB-INF/actions/QuickAddBacklog.groovy b/scrum/webapp/scrum/WEB-INF/actions/QuickAddBacklog.groovy
new file mode 100644
index 000000000..327f70cbd
--- /dev/null
+++ b/scrum/webapp/scrum/WEB-INF/actions/QuickAddBacklog.groovy
@@ -0,0 +1,93 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*/
+
+import org.ofbiz.base.util.Debug;
+
+try{
+ // for sprint dropdown
+ workEffortList = [];
+ sprintList = delegator.findByAnd("WorkEffort",["workEffortTypeId" : "SCRUM_SPRINT","currentStatusId" : "SPRINT_ACTIVE"]);
+ if (sprintList) {
+ sprintList.each{ sprintMap ->
+ workEffortMap = [:];
+ workEffortParentId = sprintMap.workEffortParentId;
+ if (workEffortParentId) {
+ projectList = delegator.findByAnd("WorkEffortAndProduct",["workEffortId" : workEffortParentId]);
+ projectMap = projectList[0];
+ // make sure that project dose not closed
+ if (projectMap.currentStatusId != "SPJ_CLOSED") {
+ productMap = delegator.findByPrimaryKey("Product",["productId" : projectMap.productId]);
+ workEffortMap.productId = productMap.productId;
+ workEffortMap.internalName = returnNameAsString(productMap.internalName,30);
+ workEffortMap.projectId = projectMap.workEffortId;
+ workEffortMap.projectName = returnNameAsString(projectMap.workEffortName,30);
+ workEffortMap.sprintId = sprintMap.workEffortId;
+ workEffortMap.sprintName = returnNameAsString(sprintMap.workEffortName,30);
+ workEffortMap.keyId = productMap.productId+","+projectMap.workEffortId+","+sprintMap.workEffortId;
+ workEffortList.add(workEffortMap);
+ }
+ }
+ }
+ context.workEffortList = workEffortList;
+ }
+
+ // for backlog category
+ productId = null;
+ if (parameters.productId) {
+ productId = parameters.productId;
+ } else {
+ if (parameters.keyId) {
+ indexList = parameters.keyId.tokenize(",");
+ productId = indexList[0].toString().trim();
+ }
+ }
+ categoryList = [];
+ if (productId) {
+ sprintList = delegator.findByAnd("CustRequestAndCustRequestItem",["custRequestTypeId" : "RF_PARENT_BACKLOG","productId" : productId]);
+ } else {
+ sprintList = delegator.findByAnd("CustRequestAndCustRequestItem",["custRequestTypeId" : "RF_PARENT_BACKLOG"]);
+ }
+ if (sprintList) {
+ sprintList.each{ categoryMap ->
+ inputMap = [:];
+ productIdIn = categoryMap.productId;
+ if (productIdIn) {
+ productMap = delegator.findByPrimaryKey("Product",["productId" : productIdIn]);
+ inputMap.productId = productMap.productId;
+ inputMap.internalName = productMap.internalName;
+ inputMap.custRequestId = categoryMap.custRequestId;
+ inputMap.custRequestName = categoryMap.custRequestName;
+ categoryList.add(inputMap);
+ }
+ }
+ context.categoryList = categoryList;
+ }
+}catch(e){
+ Debug.logInfo("catch e ================" + e,"");
+}
+
+//subString function
+def String returnNameAsString(input,length) {
+ if (input.length() > length ) {
+ ansValue = input.toString().substring(0,Math.min(input.toString().length(),length));
+ return ansValue;
+ } else {
+ return input;
+ }
+}
\ No newline at end of file
diff --git a/scrum/webapp/scrum/WEB-INF/actions/SprintBacklogListItems.groovy b/scrum/webapp/scrum/WEB-INF/actions/SprintBacklogListItems.groovy
new file mode 100644
index 000000000..6997fa79e
--- /dev/null
+++ b/scrum/webapp/scrum/WEB-INF/actions/SprintBacklogListItems.groovy
@@ -0,0 +1,122 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*/
+
+import javolution.util.FastList;
+import org.ofbiz.entity.condition.*;
+import org.ofbiz.base.util.*;
+
+taskStatusId = null;
+reopenedStatusId = null;
+backlogStatusId = parameters.backlogStatusId;
+paraBacklogStatusId = backlogStatusId;
+currentStatus = sprintStatus.currentStatusId;
+projectSprintList = [];
+
+if ("SPRINT_CLOSED".equals(currentStatus)) {
+ backlogStatusId = null;
+} else {
+ if (backlogStatusId == "Any") {
+ backlogStatusId = null;
+ } else {
+ backlogStatusId = "CRQ_REVIEWED";
+ reopenedStatusId = "CRQ_REOPENED";
+ taskStatusId = "STS_CREATED";
+ }
+}
+orCurentExprs = FastList.newInstance();
+ if (taskStatusId) {
+ orCurentExprs.add(EntityCondition.makeCondition("taskCurrentStatusId", EntityOperator.EQUALS, taskStatusId));
+ orCurentExprs.add(EntityCondition.makeCondition("taskCurrentStatusId", EntityOperator.EQUALS, "SPRINT_ACTIVE"));
+ }
+orBacklogExprs = FastList.newInstance();
+ if (backlogStatusId) {
+ orBacklogExprs.add(EntityCondition.makeCondition("backlogStatusId", EntityOperator.EQUALS, backlogStatusId));
+ }
+ if (reopenedStatusId) {
+ orBacklogExprs.add(EntityCondition.makeCondition("backlogStatusId", EntityOperator.EQUALS, reopenedStatusId));
+ }
+andExprs = FastList.newInstance();
+ if (parameters.projectId) {
+ andExprs.add(EntityCondition.makeCondition("projectId", EntityOperator.EQUALS, parameters.projectId));
+ } else {
+ andExprs.add(EntityCondition.makeCondition("projectId", EntityOperator.EQUALS, sprintStatus.workEffortParentId));
+ }
+ if (orBacklogExprs) {
+ andExprs.add(EntityCondition.makeCondition(orBacklogExprs, EntityOperator.OR));
+ }
+ if (orCurentExprs) {
+ andExprs.add(EntityCondition.makeCondition(orCurentExprs, EntityOperator.OR));
+ }
+ andExprs.add(EntityCondition.makeCondition("sprintId", EntityOperator.EQUALS, parameters.sprintId));
+ andExprs.add(EntityCondition.makeCondition("sprintTypeId", EntityOperator.EQUALS, "SCRUM_SPRINT"));
+
+projectSprintCond = EntityCondition.makeCondition(andExprs, EntityOperator.AND);
+projectSprintList = delegator.findList("ProjectSprintBacklogAndTask", projectSprintCond, null,["sequenceNum","custRequestId","taskTypeId"],null, false);
+
+context.listIt = projectSprintList;
+context.paraBacklogStatusId = paraBacklogStatusId;
+
+//get backlog and task information
+if (parameters.sprintId) {
+ //get total backlog size
+ completedBacklog = 0;
+ reviewedBacklog = 0;
+ totalbacklog = 0;
+ allTask = [];
+ sprintList = delegator.findByAnd("CustRequestWorkEffort", ["workEffortId" : parameters.sprintId]);
+ sprintList.each { sprintMap ->
+ custMap = sprintMap.getRelatedOne("CustRequest");
+ //if ("RF_PROD_BACKLOG".equals(custMap.custRequestTypeId)) {
+ totalbacklog += 1;
+ if ("CRQ_REVIEWED".equals(custMap.statusId)){
+ reviewedBacklog += 1;
+ } else {
+ completedBacklog += 1;
+ }
+ //get task
+ workEffortList = custMap.getRelated("CustRequestWorkEffort");
+ if (workEffortList) {
+ allTask.addAll(workEffortList);
+ }
+ //}
+ }
+ //get total task size
+ completedTask = 0;
+ createdTask = 0;
+ totalTask = 0;
+ if (allTask) {
+ allTask.each { taskMap ->
+ workEffMap = taskMap.getRelatedOne("WorkEffort");
+ if (!"SCRUM_SPRINT".equals(workEffMap.workEffortTypeId)) {
+ totalTask += 1;
+ if ("STS_CREATED".equals(workEffMap.currentStatusId)){
+ createdTask += 1;
+ } else {
+ completedTask += 1;
+ }
+ }
+ }
+ }
+ context.completedBacklog = completedBacklog;
+ context.reviewedBacklog = reviewedBacklog;
+ context.totalbacklog = totalbacklog;
+ context.completedTask = completedTask;
+ context.createdTask = createdTask;
+ context.totalTask = totalTask;
+}
diff --git a/scrum/webapp/scrum/WEB-INF/actions/SprintBacklogOptions.groovy b/scrum/webapp/scrum/WEB-INF/actions/SprintBacklogOptions.groovy
new file mode 100644
index 000000000..376adc8e4
--- /dev/null
+++ b/scrum/webapp/scrum/WEB-INF/actions/SprintBacklogOptions.groovy
@@ -0,0 +1,37 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*/
+
+import org.ofbiz.base.util.Debug;
+
+custRequestWorkEffortList = [];
+sprintStatusId = "SPRINT_CLOSED";
+sprintId = null;
+custRequestWorkEffortList = custRequestMap.getRelated("CustRequestWorkEffort");
+if (custRequestWorkEffortList) {
+ custRequestWorkEffortList.each { custWorkEffortMap ->
+ workEffortMap = custWorkEffortMap.getRelatedOne("WorkEffort");
+ if ("SCRUM_SPRINT".equals(workEffortMap.workEffortTypeId) && "SPRINT_ACTIVE".equals(workEffortMap.currentStatusId)) {
+ sprintId = workEffortMap.workEffortId;
+ sprintStatusId = "SPRINT_ACTIVE";
+ }
+ }
+
+}
+context.sprintId = sprintId;
+context.sprintStatusId = sprintStatusId;
diff --git a/scrum/webapp/scrum/WEB-INF/actions/TaskList.groovy b/scrum/webapp/scrum/WEB-INF/actions/TaskList.groovy
new file mode 100644
index 000000000..ce5ab5571
--- /dev/null
+++ b/scrum/webapp/scrum/WEB-INF/actions/TaskList.groovy
@@ -0,0 +1,96 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one
+* or more contributor license agreements. See the NOTICE file
+* distributed with this work for additional information
+* regarding copyright ownership. The ASF licenses this file
+* to you under the Apache License, Version 2.0 (the
+* "License"); you may not use this file except in compliance
+* with the License. You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing,
+* software distributed under the License is distributed on an
+* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+* KIND, either express or implied. See the License for the
+* specific language governing permissions and limitations
+* under the License.
+*/
+
+import java.util.*;
+import java.lang.*;
+import javolution.util.FastList;
+import org.apache.tools.ant.taskdefs.Parallel.TaskList;
+import org.ofbiz.base.util.*;
+import org.ofbiz.entity.*;
+import org.ofbiz.base.util.UtilMisc;
+import org.ofbiz.base.util.UtilValidate;
+import org.ofbiz.base.util.UtilDateTime;
+import org.ofbiz.entity.util.*;
+import org.ofbiz.entity.condition.*;
+import java.sql.Timestamp;
+
+partyId = userLogin.partyId;
+taskUnplanList = [];
+taskPlanList = [];
+taskPartyList = [];
+taskListDropdown = [];
+
+//${projectId} - ${projectName} - ${sprintName} - ${groovy:description.substring(0,Math.min(description.length(),30))}[${custRequestId}] - ${groovy:taskName.substring(0,Math.min(taskName.length(),20))}[${taskId}]"/>
+
+taskUnplanList = delegator.findByAnd("ProjectSprintBacklogTaskAndParty", ["partyId" : partyId,"taskCurrentStatusId": "STS_CREATED","custRequestTypeId":"RF_UNPLAN_BACKLOG"],["taskTypeId"]);
+taskUnplanList.each { taskUnplanMap ->
+ unplanMap=[:];
+ custRequestId = taskUnplanMap.custRequestId;
+ productlist = delegator.findByAnd("CustRequestItem", ["custRequestId" : custRequestId],["productId"]);
+ productlist.each { productMap ->
+ productId = productMap.productId;
+ product = delegator.findByPrimaryKey("Product",["productId":productId]);
+ productName = product.internalName;
+ unplanMap.taskId = taskUnplanMap.taskId;
+ unplanMap.taskName = taskUnplanMap.taskName;
+ unplanMap.projectId = taskUnplanMap.projectId;
+ unplanMap.projectName = taskUnplanMap.projectName;
+ unplanMap.sprintId = taskUnplanMap.sprintId;
+ unplanMap.sprintName = taskUnplanMap.sprintName;
+ unplanMap.custRequestId = custRequestId;
+ unplanMap.description = taskUnplanMap.description;
+ unplanMap.productId = productId;
+ unplanMap.productName = productName;
+
+ }
+ taskPartyList.add(taskUnplanMap);
+ taskListDropdown.add(unplanMap);
+}
+
+exprBldr = FastList.newInstance();
+exprBldr.add(EntityCondition.makeCondition("custRequestTypeId", EntityOperator.EQUALS, "RF_PROD_BACKLOG"));
+exprBldr.add(EntityCondition.makeCondition("custRequestTypeId", EntityOperator.EQUALS, "RF_SCRUM_MEETINGS"));
+andExprs = FastList.newInstance();
+andExprs.add(EntityCondition.makeCondition("taskCurrentStatusId", EntityOperator.EQUALS, "STS_CREATED"));
+andExprs.add(EntityCondition.makeCondition("partyId", EntityOperator.EQUALS, partyId));
+andExprs.add(EntityCondition.makeCondition(exprBldr, EntityOperator.OR));
+custRequestTypeCond = EntityCondition.makeCondition(andExprs, EntityOperator.AND);
+
+taskPlanList = delegator.findList("ProjectSprintBacklogTaskAndParty", custRequestTypeCond, null,["taskTypeId","projectId","sprintId"] ,null, false);
+taskPlanList.each { taskPlanMap ->
+ if ("RF_SCRUM_MEETINGS".equals(taskPlanMap.custRequestTypeId)) {
+ workEffPartyAssignedList = delegator.findByAnd("WorkEffortPartyAssignment",["partyId" : partyId, "workEffortId" : taskPlanMap.taskId]);
+ workEffPartyAssignedMap = workEffPartyAssignedList[0];
+ if (!"SCAS_COMPLETED".equals(workEffPartyAssignedMap.statusId)) {
+ taskPartyList.add(taskPlanMap);
+ taskListDropdown.add(taskPlanMap);
+ }
+ } else {
+ taskPartyList.add(taskPlanMap);
+ taskListDropdown.add(taskPlanMap);
+ }
+}
+if (taskPartyList){
+ context.taskPartyList = taskPartyList;
+}
+if (taskListDropdown){
+ context.taskListDropdown = taskListDropdown;
+}
+
+
diff --git a/scrum/webapp/scrum/WEB-INF/controller.xml b/scrum/webapp/scrum/WEB-INF/controller.xml
new file mode 100644
index 000000000..f73bcc6d0
--- /dev/null
+++ b/scrum/webapp/scrum/WEB-INF/controller.xml
@@ -0,0 +1,1369 @@
+
+
+
+
+
+
+ scrum Component Site Configuration File
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/scrum/webapp/scrum/WEB-INF/web.xml b/scrum/webapp/scrum/WEB-INF/web.xml
new file mode 100644
index 000000000..293289703
--- /dev/null
+++ b/scrum/webapp/scrum/WEB-INF/web.xml
@@ -0,0 +1,70 @@
+
+
+ Open For Business - scrum Component
+ scrum Component of the Open For Business Project
+
+
+ webSiteId
+ scrumSite
+ A unique ID used to look up the WebSite entity
+
+
+ localDispatcherNamescrum
+ A unique name used to identify/recognize the local dispatcher for the Service Engine
+
+
+ entityDelegatorNamedefault
+ The Name of the Entity Delegator to use, defined in entityengine.xml
+
+
+ mainDecoratorLocation
+ component://scrum/widget/CommonScreens.xml
+ The location of the main-decorator screen to use for this webapp; referred to as a context variable in screen def XML files.
+
+
+ widgetVerbose
+ false
+ Enable widget boundary comments. See org.ofbiz.widget.ModelWidget.widgetBoundaryCommentsEnabled().
+
+
+ compressHTML
+ false
+ Remove unnecessary whitespace from HTML output.
+
+
+
+ ContextFilter
+ ContextFilter
+ org.ofbiz.webapp.control.ContextFilter
+ disableContextSecurityN
+
+ allowedPaths
+ /error:/control:/select:/index.html:/index.jsp:/default.html:/default.jsp:/images:/includes/maincss.css
+
+ errorCode403
+ redirectPath/control/main
+
+ ContextFilter/*
+
+ org.ofbiz.webapp.control.ControlEventListener
+ org.ofbiz.webapp.control.LoginEventListener
+
+
+
+
+ ControlServlet
+ ControlServlet
+ Main Control Servlet
+ org.ofbiz.webapp.control.ControlServlet
+ 1
+
+ ControlServlet/control/*
+
+ 60
+
+
+ index.jsp
+ index.html
+ index.htm
+
+
\ No newline at end of file
diff --git a/scrum/webapp/scrum/error/error.jsp b/scrum/webapp/scrum/error/error.jsp
new file mode 100644
index 000000000..212fbcfa3
--- /dev/null
+++ b/scrum/webapp/scrum/error/error.jsp
@@ -0,0 +1,34 @@
+<%@ page import="org.ofbiz.base.util.*" %>
+
+
+Open For Business Message
+
+
+
+<% String errorMsg = (String) request.getAttribute("_ERROR_MESSAGE_"); %>
+
+
+
+
+
+
+
+
+
+ |
+ :ERROR MESSAGE:
+ |
+
+
+ |
+ <%=UtilFormatOut.replaceString(errorMsg, "\n", " ")%>
+ |
+
+
+ |
+
+
+
+
+
+
\ No newline at end of file
diff --git a/scrum/webapp/scrum/includes/backlogByStatusChart.ftl b/scrum/webapp/scrum/includes/backlogByStatusChart.ftl
new file mode 100644
index 000000000..03d732204
--- /dev/null
+++ b/scrum/webapp/scrum/includes/backlogByStatusChart.ftl
@@ -0,0 +1,44 @@
+<#--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+
+
+
+
+
+
diff --git a/scrum/webapp/scrum/includes/backlogByTypeChart.ftl b/scrum/webapp/scrum/includes/backlogByTypeChart.ftl
new file mode 100644
index 000000000..faf2aec3c
--- /dev/null
+++ b/scrum/webapp/scrum/includes/backlogByTypeChart.ftl
@@ -0,0 +1,44 @@
+<#--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+
+
+
+
+
+
diff --git a/scrum/webapp/scrum/includes/burndown.ftl b/scrum/webapp/scrum/includes/burndown.ftl
new file mode 100644
index 000000000..e2e2210c0
--- /dev/null
+++ b/scrum/webapp/scrum/includes/burndown.ftl
@@ -0,0 +1,61 @@
+<#--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<#assign sprint = delegator.findOne("WorkEffort", Static["org.ofbiz.base.util.UtilMisc"].toMap("workEffortId", parameters.get("sprintId")), false)?if_exists />
+<#assign actualStartDay = Static["org.ofbiz.base.util.UtilDateTime"].getDayStart(sprint.actualStartDate, timeZone, locale)/>
+<#assign actualCompletionDay = Static["org.ofbiz.base.util.UtilDateTime"].getDayStart(sprint.actualCompletionDate, timeZone, locale)/>
+<#assign dayNumber = ((actualCompletionDay.getTime() - actualStartDay.getTime())/1000/60/60/24) + 1/>
+<#assign estimatedHrs = sprint.estimatedMilliSeconds/1000/60/60/>
+<#assign members = delegator.findByAnd("WorkEffortPartyAssignment", Static["org.ofbiz.base.util.UtilMisc"].toMap("workEffortId", parameters.get("sprintId")))/>
+<#if members.size() > 0 >
+ <#assign maxHours = estimatedHrs * members.size()/>
+
+
+
+
+
+
+
+
+
+
+
+
+#if>
diff --git a/scrum/webapp/scrum/includes/demotest.ftl b/scrum/webapp/scrum/includes/demotest.ftl
new file mode 100644
index 000000000..ee2ffd733
--- /dev/null
+++ b/scrum/webapp/scrum/includes/demotest.ftl
@@ -0,0 +1,99 @@
+<#--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+
Welcome to The Scrum Component Demonstration
+
+This component is based on the following documents:
+
Scrum guide in various languages.
+
Scrum in 30 seconds.
+
Scrum in 5 minutes
+
+The table shows the demo user's which are setup in the demo data for this component.
+When you click on the User Login ID,the system will login to the Scrum Component of that User Login ID
+
+
+
+
+ | USER LOGIN ID |
+ DESCRIPTION |
+
+
+
+ Scrum Admin
+ |
+
+ Scrum Admin
+ The Scrum Admin is a userlogin who has full control and can execute any function in the Scrum Component.
+ |
+
+
+ |
+ Scrum Master |
+
+ Scrum Master
+ The Scrummaster can create the project and sprint and will put the product backlog into the sprint,
+ can assign the tasks to the scrummember, add member to the project and sprint,and can manage timesheets.
+ |
+ |
+
+
+ Product Owner
+ Product Owner2
+ |
+
+ Product Owner
+ The Product Owner can maintain his products, find products and see all products that belong to this Product Owner.
+ Product Owner can add and re-arrange the product backlog and look at the project/sprint overview and detail.
+ |
+
+
+
+ Scrumteam1
+ Scrumteam2
+ Scrumteam3
+ Scrumteam4
+ |
+
+ Scrumteam
+ The Scrumteam can read the product information, see all products that the Scrumteam is working on.
+ The Scrumteam can see and update the task information in a sprint.
+ |
+
+
+ |
+ Testadmin
+ |
+
+ Opentest
+ This is the QA function in the system. This function will show all tasks which are complete but no final test was yet done.
+ If the test was ok, the backlogitem will be be set to 'completed'
+ However when the test failed the QA person can add error tasks to indicate what did not work yet.
+ |
+
+
+ |
+ DemoStakeholder
+ |
+
+ The Stakeholder
+ The DemoStakeholder can view the Stakeholder's product and project/sprints only.
+ This is for people belonging to the same company as the product owner and are interested in how the development is going.
+ |
+
+
\ No newline at end of file
diff --git a/scrum/webapp/scrum/includes/pieChart.ftl b/scrum/webapp/scrum/includes/pieChart.ftl
new file mode 100644
index 000000000..30249e50c
--- /dev/null
+++ b/scrum/webapp/scrum/includes/pieChart.ftl
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/scrum/webapp/scrum/includes/projectAndSprintChart.ftl b/scrum/webapp/scrum/includes/projectAndSprintChart.ftl
new file mode 100644
index 000000000..b91213d74
--- /dev/null
+++ b/scrum/webapp/scrum/includes/projectAndSprintChart.ftl
@@ -0,0 +1,44 @@
+<#--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+
+
+
+
+
+
diff --git a/scrum/webapp/scrum/includes/projectByStatusChart.ftl b/scrum/webapp/scrum/includes/projectByStatusChart.ftl
new file mode 100644
index 000000000..597135919
--- /dev/null
+++ b/scrum/webapp/scrum/includes/projectByStatusChart.ftl
@@ -0,0 +1,44 @@
+<#--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+
+
+
+
+
+
diff --git a/scrum/webapp/scrum/includes/revision.ftl b/scrum/webapp/scrum/includes/revision.ftl
new file mode 100644
index 000000000..03cfd3e1e
--- /dev/null
+++ b/scrum/webapp/scrum/includes/revision.ftl
@@ -0,0 +1,32 @@
+<#--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+<#if result?has_content>
+
+
+
Log message
+
${result.logMessage}
+
+
+ <#assign oldrevision = result.revision?number - 1 >
+
The differences between revisions: ${oldrevision?if_exists} and ${result.revision?if_exists}
+
${result.diffMessage}
+
+#if>
\ No newline at end of file
diff --git a/scrum/webapp/scrum/includes/taskByStatusChart.ftl b/scrum/webapp/scrum/includes/taskByStatusChart.ftl
new file mode 100644
index 000000000..7bbcde8d0
--- /dev/null
+++ b/scrum/webapp/scrum/includes/taskByStatusChart.ftl
@@ -0,0 +1,43 @@
+<#--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+
+
+
+
+
+
diff --git a/scrum/webapp/scrum/includes/taskByTypeChart.ftl b/scrum/webapp/scrum/includes/taskByTypeChart.ftl
new file mode 100644
index 000000000..2c2a4c028
--- /dev/null
+++ b/scrum/webapp/scrum/includes/taskByTypeChart.ftl
@@ -0,0 +1,44 @@
+<#--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/scrum/webapp/scrum/index.jsp b/scrum/webapp/scrum/index.jsp
new file mode 100644
index 000000000..598a0734f
--- /dev/null
+++ b/scrum/webapp/scrum/index.jsp
@@ -0,0 +1 @@
+<%response.sendRedirect("control/main");%>
\ No newline at end of file
diff --git a/scrum/webapp/scrum/reports/BacklogByStatusChart.rptdesign b/scrum/webapp/scrum/reports/BacklogByStatusChart.rptdesign
new file mode 100644
index 000000000..a3a650960
--- /dev/null
+++ b/scrum/webapp/scrum/reports/BacklogByStatusChart.rptdesign
@@ -0,0 +1,1062 @@
+
+
+ Eclipse BIRT Designer Version 2.6.1.v20100902 Build <2.6.1.v20100915-1750>
+ in
+
+ /templates/blank_report.gif
+ auto layout
+ ltr
+ 92
+
+
+ static
+ string
+ true
+ simple
+ text-box
+
+ Unformatted
+
+
+
+
+
+
+
+
+
+
+ 0
+ DataName
+ string
+
+
+ 1
+ DataValue
+ integer
+
+
+
+
+ DataName
+
+
+ DataValue
+
+
+
+
+
+ 1
+ DataName
+ string
+
+
+ 2
+ DataValue
+ integer
+
+
+
+ Data Source
+
+
+
+
+
+
+
+
+
+
+
+
+
+ html
+
+
+
+
+
+
+
+ 2.5.1
+ Pie Chart
+ Standard
+
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+ North
+ Horizontal
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+ true
+
+
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+ true
+ 5
+ 5
+
+
+
+ 0
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+
+
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+ true
+
+
+
+ 0
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 2.0
+ 2.0
+ 2.0
+ 2.0
+
+
+
+
+
+
+
+
+ Vertical
+ Top_Bottom
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ true
+
+ Right
+ Categories
+
+
+
+
+
+
+
+
+ 0
+ 255
+ 255
+ 255
+
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 0.0
+ 2.0
+ 0.0
+ 3.0
+
+ false
+
+ Above
+
+
+ 0.0
+ 0.0
+ 540.0
+ 216.0
+
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+ true
+
+ Two_Dimensional_With_Depth
+ Points
+ 10.0
+ 0
+
+ enable.area.alt
+ false
+
+
+
+ 'A','B','C','D','E'
+
+
+ 6,4,12,8,10
+ 0
+
+
+
+ true
+ None
+
+
+
+ This chart contains no data.
+
+
+ Center
+ Center
+
+
+
+
+ 64
+ 127
+ 127
+ 127
+
+
+
+ 128
+ 127
+ 127
+ 127
+
+ true
+
+
+ 10.0
+ 10.0
+ 10.0
+ 10.0
+
+ false
+
+
+
+
+
+
+
+ 255
+ 80
+ 166
+ 218
+
+
+ 255
+ 242
+ 88
+ 106
+
+
+ 255
+ 232
+ 172
+ 57
+
+
+ 255
+ 128
+ 255
+ 128
+
+
+ 255
+ 64
+ 128
+ 128
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 170
+ 85
+ 85
+
+
+ 255
+ 128
+ 128
+ 0
+
+
+ 255
+ 192
+ 192
+ 192
+
+
+ 255
+ 255
+ 255
+ 128
+
+
+ 255
+ 128
+ 192
+ 128
+
+
+ 255
+ 7
+ 146
+ 94
+
+
+ 255
+ 0
+ 128
+ 255
+
+
+ 255
+ 255
+ 128
+ 192
+
+
+ 255
+ 0
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 128
+
+
+ 255
+ 0
+ 128
+ 192
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 255
+ 0
+ 255
+
+
+ 255
+ 128
+ 64
+ 64
+
+
+ 255
+ 255
+ 128
+ 64
+
+
+ 255
+ 80
+ 240
+ 120
+
+
+ 255
+ 0
+ 64
+ 128
+
+
+ 255
+ 128
+ 0
+ 64
+
+
+ 255
+ 255
+ 0
+ 128
+
+
+ 255
+ 128
+ 128
+ 64
+
+
+ 255
+ 128
+ 128
+ 128
+
+
+ 255
+ 255
+ 128
+ 255
+
+
+ 255
+ 0
+ 64
+ 0
+
+
+ 255
+ 0
+ 0
+ 0
+
+
+ 255
+ 255
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 0
+
+
+
+
+
+
+ Text
+
+
+
+
+ 255
+ 80
+ 166
+ 218
+
+
+ 255
+ 242
+ 88
+ 106
+
+
+ 255
+ 232
+ 172
+ 57
+
+
+ 255
+ 128
+ 255
+ 128
+
+
+ 255
+ 64
+ 128
+ 128
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 170
+ 85
+ 85
+
+
+ 255
+ 128
+ 128
+ 0
+
+
+ 255
+ 192
+ 192
+ 192
+
+
+ 255
+ 255
+ 255
+ 128
+
+
+ 255
+ 128
+ 192
+ 128
+
+
+ 255
+ 7
+ 146
+ 94
+
+
+ 255
+ 0
+ 128
+ 255
+
+
+ 255
+ 255
+ 128
+ 192
+
+
+ 255
+ 0
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 128
+
+
+ 255
+ 0
+ 128
+ 192
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 255
+ 0
+ 255
+
+
+ 255
+ 128
+ 64
+ 64
+
+
+ 255
+ 255
+ 128
+ 64
+
+
+ 255
+ 80
+ 240
+ 120
+
+
+ 255
+ 0
+ 64
+ 128
+
+
+ 255
+ 128
+ 0
+ 64
+
+
+ 255
+ 255
+ 0
+ 128
+
+
+ 255
+ 128
+ 128
+ 64
+
+
+ 255
+ 128
+ 128
+ 128
+
+
+ 255
+ 255
+ 128
+ 255
+
+
+ 255
+ 0
+ 64
+ 0
+
+
+ 255
+ 0
+ 0
+ 0
+
+
+ 255
+ 255
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 0
+
+
+
+ true
+
+
+ row["DataValue"]
+
+ Text
+ Sum
+
+
+
+
+
+ Orthogonal_Value
+
+ ,
+
+ Outside
+ false
+ 0
+ categoryData
+
+
+
+
+ 16.0
+ true
+
+
+
+
+ 0
+ 255
+ 255
+ 255
+
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+
+
+ 0.0
+ 2.0
+ 0.0
+ 3.0
+
+ true
+
+ Below
+
+
+ 1
+ true
+
+ Fixed_Length
+ 10.0
+
+
+ Text
+ Sum
+
+
+
+ true
+
+
+ row["DataName"]
+
+
+
+
+ Orthogonal_Value
+
+ ,
+
+ Outside
+ false
+
+
+ true
+ Text
+ Sum
+
+
+
+]]>
+ SVG
+ false
+ TestDataSet
+ 3in
+ 7.5in
+
+
+ DataName
+ dataSetRow["DataName"]
+ string
+
+
+ DataValue
+ dataSetRow["DataValue"]
+ integer
+
+
+
+
+
diff --git a/scrum/webapp/scrum/reports/BacklogByTypeChart.rptdesign b/scrum/webapp/scrum/reports/BacklogByTypeChart.rptdesign
new file mode 100644
index 000000000..f48245668
--- /dev/null
+++ b/scrum/webapp/scrum/reports/BacklogByTypeChart.rptdesign
@@ -0,0 +1,1062 @@
+
+
+ Eclipse BIRT Designer Version 2.6.1.v20100902 Build <2.6.1.v20100915-1750>
+ in
+
+ /templates/blank_report.gif
+ auto layout
+ ltr
+ 92
+
+
+ static
+ string
+ true
+ simple
+ text-box
+
+ Unformatted
+
+
+
+
+
+
+
+
+
+
+ 1
+ DataName
+ string
+
+
+ 2
+ DataValue
+ integer
+
+
+
+
+ DataName
+
+
+ DataValue
+
+
+
+
+
+ 1
+ DataName
+ string
+
+
+ 2
+ DataValue
+ integer
+
+
+
+ Data Source
+
+
+
+
+
+
+
+
+
+
+
+
+
+ html
+
+
+
+
+
+
+
+ 2.5.1
+ Pie Chart
+ Standard
+
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+ North
+ Horizontal
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 0
+ 255
+ 255
+ 255
+
+ true
+
+
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 0
+ 255
+ 255
+ 255
+
+ true
+ 5
+ 5
+
+
+ 0
+ 255
+ 255
+ 255
+
+
+
+ 0
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+
+
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 0
+ 255
+ 255
+ 255
+
+ true
+
+
+
+ 0
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 0
+ 255
+ 255
+ 255
+
+
+ 2.0
+ 2.0
+ 2.0
+ 2.0
+
+
+
+
+
+
+
+
+ Vertical
+ Top_Bottom
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ true
+
+ Right
+ Categories
+
+
+
+
+
+
+
+
+ 0
+ 255
+ 255
+ 255
+
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 0.0
+ 2.0
+ 0.0
+ 3.0
+
+ false
+
+ Above
+
+
+ 0.0
+ 0.0
+ 432.0
+ 216.0
+
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+ true
+
+ Two_Dimensional_With_Depth
+ Points
+ 10.0
+ 0
+
+ enable.area.alt
+ false
+
+
+
+ 'A','B','C','D','E'
+
+
+ 6,4,12,8,10
+ 0
+
+
+
+ true
+ None
+
+
+
+ This chart contains no data.
+
+
+ Center
+ Center
+
+
+
+
+ 64
+ 127
+ 127
+ 127
+
+
+
+ 128
+ 127
+ 127
+ 127
+
+ true
+
+
+ 10.0
+ 10.0
+ 10.0
+ 10.0
+
+ false
+
+
+
+
+
+
+
+ 255
+ 80
+ 166
+ 218
+
+
+ 255
+ 242
+ 88
+ 106
+
+
+ 255
+ 232
+ 172
+ 57
+
+
+ 255
+ 128
+ 255
+ 128
+
+
+ 255
+ 64
+ 128
+ 128
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 170
+ 85
+ 85
+
+
+ 255
+ 128
+ 128
+ 0
+
+
+ 255
+ 192
+ 192
+ 192
+
+
+ 255
+ 255
+ 255
+ 128
+
+
+ 255
+ 128
+ 192
+ 128
+
+
+ 255
+ 7
+ 146
+ 94
+
+
+ 255
+ 0
+ 128
+ 255
+
+
+ 255
+ 255
+ 128
+ 192
+
+
+ 255
+ 0
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 128
+
+
+ 255
+ 0
+ 128
+ 192
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 255
+ 0
+ 255
+
+
+ 255
+ 128
+ 64
+ 64
+
+
+ 255
+ 255
+ 128
+ 64
+
+
+ 255
+ 80
+ 240
+ 120
+
+
+ 255
+ 0
+ 64
+ 128
+
+
+ 255
+ 128
+ 0
+ 64
+
+
+ 255
+ 255
+ 0
+ 128
+
+
+ 255
+ 128
+ 128
+ 64
+
+
+ 255
+ 128
+ 128
+ 128
+
+
+ 255
+ 255
+ 128
+ 255
+
+
+ 255
+ 0
+ 64
+ 0
+
+
+ 255
+ 0
+ 0
+ 0
+
+
+ 255
+ 255
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 0
+
+
+
+
+
+
+ Text
+
+
+
+
+ 255
+ 80
+ 166
+ 218
+
+
+ 255
+ 242
+ 88
+ 106
+
+
+ 255
+ 232
+ 172
+ 57
+
+
+ 255
+ 128
+ 255
+ 128
+
+
+ 255
+ 64
+ 128
+ 128
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 170
+ 85
+ 85
+
+
+ 255
+ 128
+ 128
+ 0
+
+
+ 255
+ 192
+ 192
+ 192
+
+
+ 255
+ 255
+ 255
+ 128
+
+
+ 255
+ 128
+ 192
+ 128
+
+
+ 255
+ 7
+ 146
+ 94
+
+
+ 255
+ 0
+ 128
+ 255
+
+
+ 255
+ 255
+ 128
+ 192
+
+
+ 255
+ 0
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 128
+
+
+ 255
+ 0
+ 128
+ 192
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 255
+ 0
+ 255
+
+
+ 255
+ 128
+ 64
+ 64
+
+
+ 255
+ 255
+ 128
+ 64
+
+
+ 255
+ 80
+ 240
+ 120
+
+
+ 255
+ 0
+ 64
+ 128
+
+
+ 255
+ 128
+ 0
+ 64
+
+
+ 255
+ 255
+ 0
+ 128
+
+
+ 255
+ 128
+ 128
+ 64
+
+
+ 255
+ 128
+ 128
+ 128
+
+
+ 255
+ 255
+ 128
+ 255
+
+
+ 255
+ 0
+ 64
+ 0
+
+
+ 255
+ 0
+ 0
+ 0
+
+
+ 255
+ 255
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 0
+
+
+
+ true
+
+
+ row["DataValue"]
+
+ Text
+ Sum
+
+
+
+
+
+ Orthogonal_Value
+
+ ,
+
+ Outside
+ false
+ 0
+ categoryData
+
+
+
+
+ 16.0
+ true
+
+
+
+
+ 0
+ 255
+ 255
+ 255
+
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+
+
+ 0.0
+ 2.0
+ 0.0
+ 3.0
+
+ true
+
+ Below
+
+
+ 1
+ true
+
+ Fixed_Length
+ 10.0
+
+
+ Text
+ Sum
+
+
+
+ true
+
+
+ row["DataName"]
+
+
+
+
+ Orthogonal_Value
+
+ ,
+
+ Outside
+ false
+
+
+ true
+ Text
+ Sum
+
+
+
+]]>
+ SVG
+ false
+ Data Set
+ 3in
+ 6in
+
+
+ DataName
+ dataSetRow["DataName"]
+ string
+
+
+ DataValue
+ dataSetRow["DataValue"]
+ integer
+
+
+
+
+
diff --git a/scrum/webapp/scrum/reports/BacklogChart.rptdesign b/scrum/webapp/scrum/reports/BacklogChart.rptdesign
new file mode 100644
index 000000000..f318a3e35
--- /dev/null
+++ b/scrum/webapp/scrum/reports/BacklogChart.rptdesign
@@ -0,0 +1,1062 @@
+
+
+ Eclipse BIRT Designer Version 2.6.1.v20100902 Build <2.6.1.v20100915-1750>
+ in
+
+ /templates/blank_report.gif
+ auto layout
+ ltr
+ 92
+
+
+ static
+ string
+ true
+ simple
+ text-box
+
+ Unformatted
+
+
+
+
+
+
+
+
+
+
+ 0
+ DataName
+ string
+
+
+ 1
+ DataValue
+ integer
+
+
+
+
+ DataName
+
+
+ DataValue
+
+
+
+
+
+ 1
+ DataName
+ string
+
+
+ 2
+ DataValue
+ integer
+
+
+
+ Data Source
+
+
+
+
+
+
+
+
+
+
+
+
+
+ html
+
+
+
+
+
+
+
+ 2.5.1
+ Pie Chart
+ Standard
+
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+ North
+ Horizontal
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+ true
+
+
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+ true
+ 5
+ 5
+
+
+
+ 0
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+
+
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+ true
+
+
+
+ 0
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 2.0
+ 2.0
+ 2.0
+ 2.0
+
+
+
+
+
+
+
+
+ Vertical
+ Top_Bottom
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ true
+
+ Right
+ Categories
+
+
+
+
+
+
+
+
+ 0
+ 255
+ 255
+ 255
+
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 0.0
+ 2.0
+ 0.0
+ 3.0
+
+ false
+
+ Above
+
+
+ 0.0
+ 0.0
+ 443.73913043478257
+ 230.08695652173913
+
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+ true
+
+ Two_Dimensional_With_Depth
+ Points
+ 10.0
+ 0
+
+ enable.area.alt
+ false
+
+
+
+ 'A','B','C','D','E'
+
+
+ 6,4,12,8,10
+ 0
+
+
+
+ true
+ None
+
+
+
+ This chart contains no data.
+
+
+ Center
+ Center
+
+
+
+
+ 64
+ 127
+ 127
+ 127
+
+
+
+ 128
+ 127
+ 127
+ 127
+
+ true
+
+
+ 10.0
+ 10.0
+ 10.0
+ 10.0
+
+ false
+
+
+
+
+
+
+
+ 255
+ 80
+ 166
+ 218
+
+
+ 255
+ 242
+ 88
+ 106
+
+
+ 255
+ 232
+ 172
+ 57
+
+
+ 255
+ 128
+ 255
+ 128
+
+
+ 255
+ 64
+ 128
+ 128
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 170
+ 85
+ 85
+
+
+ 255
+ 128
+ 128
+ 0
+
+
+ 255
+ 192
+ 192
+ 192
+
+
+ 255
+ 255
+ 255
+ 128
+
+
+ 255
+ 128
+ 192
+ 128
+
+
+ 255
+ 7
+ 146
+ 94
+
+
+ 255
+ 0
+ 128
+ 255
+
+
+ 255
+ 255
+ 128
+ 192
+
+
+ 255
+ 0
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 128
+
+
+ 255
+ 0
+ 128
+ 192
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 255
+ 0
+ 255
+
+
+ 255
+ 128
+ 64
+ 64
+
+
+ 255
+ 255
+ 128
+ 64
+
+
+ 255
+ 80
+ 240
+ 120
+
+
+ 255
+ 0
+ 64
+ 128
+
+
+ 255
+ 128
+ 0
+ 64
+
+
+ 255
+ 255
+ 0
+ 128
+
+
+ 255
+ 128
+ 128
+ 64
+
+
+ 255
+ 128
+ 128
+ 128
+
+
+ 255
+ 255
+ 128
+ 255
+
+
+ 255
+ 0
+ 64
+ 0
+
+
+ 255
+ 0
+ 0
+ 0
+
+
+ 255
+ 255
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 0
+
+
+
+
+
+
+ Text
+
+
+
+
+ 255
+ 80
+ 166
+ 218
+
+
+ 255
+ 242
+ 88
+ 106
+
+
+ 255
+ 232
+ 172
+ 57
+
+
+ 255
+ 128
+ 255
+ 128
+
+
+ 255
+ 64
+ 128
+ 128
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 170
+ 85
+ 85
+
+
+ 255
+ 128
+ 128
+ 0
+
+
+ 255
+ 192
+ 192
+ 192
+
+
+ 255
+ 255
+ 255
+ 128
+
+
+ 255
+ 128
+ 192
+ 128
+
+
+ 255
+ 7
+ 146
+ 94
+
+
+ 255
+ 0
+ 128
+ 255
+
+
+ 255
+ 255
+ 128
+ 192
+
+
+ 255
+ 0
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 128
+
+
+ 255
+ 0
+ 128
+ 192
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 255
+ 0
+ 255
+
+
+ 255
+ 128
+ 64
+ 64
+
+
+ 255
+ 255
+ 128
+ 64
+
+
+ 255
+ 80
+ 240
+ 120
+
+
+ 255
+ 0
+ 64
+ 128
+
+
+ 255
+ 128
+ 0
+ 64
+
+
+ 255
+ 255
+ 0
+ 128
+
+
+ 255
+ 128
+ 128
+ 64
+
+
+ 255
+ 128
+ 128
+ 128
+
+
+ 255
+ 255
+ 128
+ 255
+
+
+ 255
+ 0
+ 64
+ 0
+
+
+ 255
+ 0
+ 0
+ 0
+
+
+ 255
+ 255
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 0
+
+
+
+ true
+
+
+ row["DataValue"]
+
+ Text
+ Sum
+
+
+
+
+
+ Orthogonal_Value
+
+ ,
+
+ Outside
+ false
+ 0
+ categoryData
+
+
+
+
+ 16.0
+ true
+
+
+
+
+ 0
+ 255
+ 255
+ 255
+
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+
+
+ 0.0
+ 2.0
+ 0.0
+ 3.0
+
+ true
+
+ Below
+
+
+ 1
+ true
+
+ Fixed_Length
+ 10.0
+
+
+ Text
+ Sum
+
+
+
+ true
+
+
+ row["DataName"]
+
+
+
+
+ Orthogonal_Value
+
+ ,
+
+ Outside
+ false
+
+
+ true
+ Text
+ Sum
+
+
+
+]]>
+ SVG
+ false
+ TestDataSet
+ 3.1956521739130435in
+ 6.163043478260869in
+
+
+ DataName
+ dataSetRow["DataName"]
+ string
+
+
+ DataValue
+ dataSetRow["DataValue"]
+ integer
+
+
+
+
+
diff --git a/scrum/webapp/scrum/reports/Burndown.rptdesign b/scrum/webapp/scrum/reports/Burndown.rptdesign
new file mode 100644
index 000000000..a36089e09
--- /dev/null
+++ b/scrum/webapp/scrum/reports/Burndown.rptdesign
@@ -0,0 +1,2167 @@
+
+
+ Eclipse BIRT Designer Version 2.6.1.v20100902 Build <2.6.1.v20100915-1750>
+ in
+
+ /templates/blank_report.gif
+ ltr
+ 99
+
+
+ static
+ dateTime
+ true
+ simple
+ text-box
+
+ Custom
+ yyyy-mm-dd hh:mm:ss
+
+
+
+ static
+ dateTime
+ true
+ simple
+ text-box
+
+ Custom
+ yyyy-mm-dd hh:mm:ss
+
+
+
+ static
+ integer
+ true
+ simple
+ text-box
+
+ Unformatted
+
+
+
+ static
+ integer
+ true
+ simple
+ text-box
+
+ Unformatted
+
+
+
+ static
+ string
+ true
+ simple
+ text-box
+
+ Unformatted
+
+
+
+ static
+ decimal
+ true
+ simple
+ text-box
+
+ Unformatted
+
+
+
+
+
+
+
+
+
+
+ 1
+ sprintDay
+ integer
+
+
+ 2
+ remainPlannedHours
+ decimal
+
+
+ 3
+ balanceActualHours
+ decimal
+
+
+ 4
+ dialyCompleteed
+ decimal
+
+
+ 5
+ averageHours
+ decimal
+
+
+
+
+ sprintDay
+ sprintDay
+
+
+ remainPlannedHours
+ remainPlannedHours
+
+
+ balanceActualHours
+ balanceActualHours
+
+
+ dialyCompleteed
+ dialyCompleteed
+
+
+ averageHours
+ averageHours
+
+
+
+
+
+ 1
+ sprintDay
+ integer
+
+
+ 2
+ remainPlannedHours
+ decimal
+
+
+ 3
+ balanceActualHours
+ decimal
+
+
+ 4
+ dialyCompleteed
+ decimal
+
+
+ 5
+ averageHours
+ decimal
+
+
+
+ OFBiz
+
+ = dayNumber || currentDay >= 0) return false;
+
+var sprintDay = dayCount + 1;
+var actualStartDay = UtilDateTime.getDayStart(new Timestamp(actualStartDate.getTime()), new java.util.SimpleTimeZone(reportContext.getTimeZone().getRawOffset(), reportContext.getTimeZone().getID()), reportContext.getLocale());
+var conditionTimestampFrom = new Timestamp(actualStartDay.getTime() + (dayCount*1000*60*60*24));
+var conditionTimestampTo = new Timestamp(actualStartDay.getTime() + (dayCount*1000*60*60*24) + (1000*60*60*24) - 1);
+
+// check current day
+var nowTimestamp = UtilDateTime.nowTimestamp();
+if (nowTimestamp.getTime() >= conditionTimestampFrom.getTime() && nowTimestamp.getTime() <= conditionTimestampTo.getTime()) {
+ reportContext.getAppContext().put("sprintDayLabel", sprintDay + "");
+}
+
+// get public holiday
+var holidayConds = FastList.newInstance();
+holidayConds.add(EntityCondition.makeCondition("workEffortTypeId",EntityOperator.EQUALS, "SCRUM_HOLIDAY"));
+holidayConds.add(EntityCondition.makeCondition("estimatedStartDate", EntityOperator.EQUALS, conditionTimestampFrom));
+var fieldsToSelect = UtilMisc.toSet("workEffortId","estimatedStartDate");
+var holidayList = delegator.findList("WorkEffort", EntityCondition.makeCondition(holidayConds), fieldsToSelect, null, null, false);
+
+// check holiday
+var isHoliday = false;
+var dayOfWeek = UtilDateTime.getDayOfWeek(conditionTimestampFrom, new java.util.SimpleTimeZone(reportContext.getTimeZone().getRawOffset(), reportContext.getTimeZone().getID()), reportContext.getLocale());
+var day = UtilDateTime.days[dayOfWeek - 2];
+if (UtilValidate.isNotEmpty(holidayList) || "Saturday".equals(day) || "undefined".equals(day) /*Sunday*/) {
+ isHoliday = true;
+}
+if (isHoliday) {
+ holidays.add(sprintDay + "");
+ reportContext.getAppContext().put("holidays", holidays);
+}
+input = FastMap.newInstance();
+var plannedHours = BigDecimal.ZERO;
+var actualHours = BigDecimal.ZERO;
+
+// get times from all backlog item's tasks
+var sprint = delegator.findOne("WorkEffort", UtilMisc.toMap("workEffortId", sprintId), false);
+var backlogItems = sprint.getRelated("CustRequestWorkEffort");
+for (i=0; i 0) {
+ // get actual hours from task
+ for (k=0; k
+
+
+
+
+
+
+
+
+
+ us-letter
+ auto
+ 0.25in
+ 0.25in
+ 0.25in
+
+
+
+
+
+ 2.5.1
+ Line Chart
+ Overlay
+
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+ true
+
+
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+ true
+ 5
+ 5
+
+
+
+ 0
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+
+
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+ true
+
+
+
+ 0
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 2.0
+ 2.0
+ 2.0
+ 2.0
+
+
+
+
+
+
+
+
+ Vertical
+ Top_Bottom
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ true
+
+ Right
+ Series
+
+
+
+
+
+
+
+
+ 0
+ 255
+ 255
+ 255
+
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 0.0
+ 2.0
+ 0.0
+ 3.0
+
+ false
+
+ Above
+ false
+
+
+ 0.0
+ 0.0
+ 540.0
+ 201.6
+
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+ true
+
+ Two_Dimensional
+
+ Points
+ 10.0
+
+ enable.area.alt
+ false
+
+
+
+ 6,4,12,8,10
+
+
+ 42,91,62,9,21
+ 0
+
+
+ 83,03,04,41,81
+ 1
+
+
+ 25,14,45,91,42
+ 2
+
+
+
+ None
+
+
+
+ This chart contains no data.
+
+
+ Center
+ Center
+
+
+
+
+ 64
+ 127
+ 127
+ 127
+
+
+
+ 128
+ 127
+ 127
+ 127
+
+ true
+
+
+ 10.0
+ 10.0
+ 10.0
+ 10.0
+
+ false
+
+
+ Linear
+
+
+ Sprint Day
+
+ 9.0
+ true
+
+ Center
+ Center
+
+
+
+
+ 0
+ 255
+ 255
+ 255
+
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+
+
+ 0.0
+ 2.0
+ 0.0
+ 3.0
+
+ true
+
+ Below
+
+ Linear
+
+
+ Man Hours
+
+ 9.0
+ true
+
+ Center
+ Center
+
+ 90.0
+
+
+
+ 0
+ 255
+ 255
+ 255
+
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 0.0
+ 10.0
+ 0.0
+ 10.0
+
+ true
+
+ Left
+
+
+
+
+
+
+ 255
+ 240
+ 86
+ 86
+
+
+ 255
+ 232
+ 172
+ 57
+
+
+ 255
+ 128
+ 255
+ 128
+
+
+ 255
+ 242
+ 88
+ 106
+
+
+ 255
+ 170
+ 85
+ 85
+
+
+ 255
+ 64
+ 128
+ 128
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 128
+ 128
+ 0
+
+
+ 255
+ 192
+ 192
+ 192
+
+
+ 255
+ 255
+ 255
+ 128
+
+
+ 255
+ 128
+ 192
+ 128
+
+
+ 255
+ 7
+ 146
+ 94
+
+
+ 255
+ 0
+ 128
+ 255
+
+
+ 255
+ 255
+ 128
+ 192
+
+
+ 255
+ 0
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 128
+
+
+ 255
+ 0
+ 128
+ 192
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 255
+ 0
+ 255
+
+
+ 255
+ 128
+ 64
+ 64
+
+
+ 255
+ 255
+ 128
+ 64
+
+
+ 255
+ 80
+ 240
+ 120
+
+
+ 255
+ 0
+ 64
+ 128
+
+
+ 255
+ 128
+ 0
+ 64
+
+
+ 255
+ 255
+ 0
+ 128
+
+
+ 255
+ 128
+ 128
+ 64
+
+
+ 255
+ 128
+ 128
+ 128
+
+
+ 255
+ 255
+ 128
+ 255
+
+
+ 255
+ 0
+ 64
+ 0
+
+
+ 255
+ 0
+ 0
+ 0
+
+
+ 255
+ 255
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 0
+
+
+
+ true
+
+
+ row["remainPlannedHours"]
+
+ false
+ Text
+ Sum
+
+
+ Actual Remaining Hours
+
+
+ Orthogonal_Value
+
+ ,
+
+ Above
+ false
+
+ onmouseover
+
+ Show_Tooltip
+
+ row["remainPlannedHours"]
+ 200
+
+
+
+ false
+
+ Box
+ 4
+ true
+
+ true
+
+
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ true
+
+ true
+
+
+ Text
+ Sum
+
+
+
+
+
+
+
+
+ 255
+ 232
+ 172
+ 57
+
+
+ 255
+ 128
+ 255
+ 128
+
+
+ 255
+ 242
+ 88
+ 106
+
+
+ 255
+ 170
+ 85
+ 85
+
+
+ 255
+ 64
+ 128
+ 128
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 128
+ 128
+ 0
+
+
+ 255
+ 192
+ 192
+ 192
+
+
+ 255
+ 255
+ 255
+ 128
+
+
+ 255
+ 128
+ 192
+ 128
+
+
+ 255
+ 7
+ 146
+ 94
+
+
+ 255
+ 0
+ 128
+ 255
+
+
+ 255
+ 255
+ 128
+ 192
+
+
+ 255
+ 0
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 128
+
+
+ 255
+ 0
+ 128
+ 192
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 255
+ 0
+ 255
+
+
+ 255
+ 128
+ 64
+ 64
+
+
+ 255
+ 255
+ 128
+ 64
+
+
+ 255
+ 80
+ 240
+ 120
+
+
+ 255
+ 0
+ 64
+ 128
+
+
+ 255
+ 128
+ 0
+ 64
+
+
+ 255
+ 255
+ 0
+ 128
+
+
+ 255
+ 128
+ 128
+ 64
+
+
+ 255
+ 128
+ 128
+ 128
+
+
+ 255
+ 255
+ 128
+ 255
+
+
+ 255
+ 0
+ 64
+ 0
+
+
+ 255
+ 0
+ 0
+ 0
+
+
+ 255
+ 255
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 0
+
+
+ 255
+ 240
+ 86
+ 86
+
+
+
+ true
+
+
+ row["averageHours"].toPrecision(2)
+
+ false
+ Text
+ Sum
+
+
+ Ideal Remaining Hours
+
+
+ Orthogonal_Value
+
+ ,
+
+ Above
+ false
+
+ onmouseover
+
+ Show_Tooltip
+
+ row["dialyCompleteed"]
+ 200
+
+
+
+ false
+
+ Box
+ 4
+ true
+
+ true
+
+
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ true
+
+ true
+
+
+ Text
+ Sum
+
+
+
+
+
+
+
+
+ 255
+ 128
+ 255
+ 128
+
+
+ 255
+ 242
+ 88
+ 106
+
+
+ 255
+ 170
+ 85
+ 85
+
+
+ 255
+ 64
+ 128
+ 128
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 128
+ 128
+ 0
+
+
+ 255
+ 192
+ 192
+ 192
+
+
+ 255
+ 255
+ 255
+ 128
+
+
+ 255
+ 128
+ 192
+ 128
+
+
+ 255
+ 7
+ 146
+ 94
+
+
+ 255
+ 0
+ 128
+ 255
+
+
+ 255
+ 255
+ 128
+ 192
+
+
+ 255
+ 0
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 128
+
+
+ 255
+ 0
+ 128
+ 192
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 255
+ 0
+ 255
+
+
+ 255
+ 128
+ 64
+ 64
+
+
+ 255
+ 255
+ 128
+ 64
+
+
+ 255
+ 80
+ 240
+ 120
+
+
+ 255
+ 0
+ 64
+ 128
+
+
+ 255
+ 128
+ 0
+ 64
+
+
+ 255
+ 255
+ 0
+ 128
+
+
+ 255
+ 128
+ 128
+ 64
+
+
+ 255
+ 128
+ 128
+ 128
+
+
+ 255
+ 255
+ 128
+ 255
+
+
+ 255
+ 0
+ 64
+ 0
+
+
+ 255
+ 0
+ 0
+ 0
+
+
+ 255
+ 255
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 0
+
+
+ 255
+ 240
+ 86
+ 86
+
+
+ 255
+ 232
+ 172
+ 57
+
+
+
+ true
+
+
+ row["dialyCompleteed"]
+
+ false
+ Text
+ Sum
+
+
+ Daily Actual Hours
+
+
+ Orthogonal_Value
+
+ ,
+
+ Outside
+ false
+
+ onmouseover
+
+ Show_Tooltip
+
+ row["balanceActualHours"]
+ 200
+
+
+
+ false
+ Rectangle
+
+
+ Text
+ Sum
+
+
+ Vertical
+
+
+ 1
+ true
+
+
+ Left
+ true
+
+
+
+ 1
+
+ 255
+ 196
+ 196
+ 196
+
+ false
+
+ Across
+
+
+ 1
+
+ 255
+ 196
+ 196
+ 196
+
+ true
+
+
+
+
+
+ 1
+
+ 255
+ 225
+ 225
+ 225
+
+ false
+
+ Across
+
+
+ 1
+
+ 255
+ 225
+ 225
+ 225
+
+ false
+
+
+
+ 5
+
+
+ Min
+
+ -5.0
+
+
+ true
+ false
+
+
+
+
+
+
+
+ 255
+ 240
+ 86
+ 86
+
+
+ 255
+ 232
+ 172
+ 57
+
+
+ 255
+ 128
+ 255
+ 128
+
+
+ 255
+ 80
+ 166
+ 218
+
+
+ 255
+ 170
+ 85
+ 85
+
+
+ 255
+ 64
+ 128
+ 128
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 128
+ 128
+ 0
+
+
+ 255
+ 192
+ 192
+ 192
+
+
+ 255
+ 255
+ 255
+ 128
+
+
+ 255
+ 128
+ 192
+ 128
+
+
+ 255
+ 7
+ 146
+ 94
+
+
+ 255
+ 0
+ 128
+ 255
+
+
+ 255
+ 255
+ 128
+ 192
+
+
+ 255
+ 0
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 128
+
+
+ 255
+ 0
+ 128
+ 192
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 255
+ 0
+ 255
+
+
+ 255
+ 128
+ 64
+ 64
+
+
+ 255
+ 255
+ 128
+ 64
+
+
+ 255
+ 80
+ 240
+ 120
+
+
+ 255
+ 0
+ 64
+ 128
+
+
+ 255
+ 128
+ 0
+ 64
+
+
+ 255
+ 255
+ 0
+ 128
+
+
+ 255
+ 128
+ 128
+ 64
+
+
+ 255
+ 128
+ 128
+ 128
+
+
+ 255
+ 255
+ 128
+ 255
+
+
+ 255
+ 0
+ 64
+ 0
+
+
+ 255
+ 0
+ 0
+ 0
+
+
+ 255
+ 255
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 0
+
+
+
+ true
+
+
+ row["sprintDay"]
+
+
+
+
+ Orthogonal_Value
+
+ ,
+
+ Outside
+ false
+
+
+ true
+ Numeric
+ Sum
+
+
+ Horizontal
+
+
+ 1
+ true
+
+
+ Below
+
+
+
+ 1
+
+ 255
+ 196
+ 196
+ 196
+
+ false
+
+ Across
+
+
+ 1
+
+ 255
+ 196
+ 196
+ 196
+
+ true
+
+
+
+
+
+ 1
+
+ 255
+ 225
+ 225
+ 225
+
+ false
+
+ Across
+
+
+ 1
+
+ 255
+ 225
+ 225
+ 225
+
+ false
+
+
+
+ 5
+
+
+ Min
+
+ 0.0
+
+
+ true
+ true
+ false
+
+ Vertical
+ 50.0
+
+
+]]>
+ SVG
+ true
+ TimeEntries
+ 2.8in
+ 7.5in
+
+
+ sprintDay
+ dataSetRow["sprintDay"]
+ integer
+
+
+ remainPlannedHours
+ dataSetRow["remainPlannedHours"]
+ decimal
+
+
+ balanceActualHours
+ dataSetRow["balanceActualHours"]
+ decimal
+
+
+ dialyCompleteed
+ dataSetRow["dialyCompleteed"]
+ decimal
+
+
+ averageHours
+ dataSetRow["averageHours"]
+ decimal
+
+
+
+
+
diff --git a/scrum/webapp/scrum/reports/ProjectAndSprintChart.rptdesign b/scrum/webapp/scrum/reports/ProjectAndSprintChart.rptdesign
new file mode 100644
index 000000000..d093de61f
--- /dev/null
+++ b/scrum/webapp/scrum/reports/ProjectAndSprintChart.rptdesign
@@ -0,0 +1,2142 @@
+
+
+ Eclipse BIRT Designer Version 2.6.1.v20100902 Build <2.6.1.v20100915-1750>
+ in
+
+ /templates/blank_report.gif
+ ltr
+ 96
+
+
+ static
+ string
+ true
+ simple
+ text-box
+
+ Unformatted
+
+
+
+
+
+
+
+
+
+
+ 0
+ TimeOut
+ integer
+
+
+ 1
+ Active
+ integer
+
+
+ 2
+ Closed
+ integer
+
+
+ 3
+ Total
+ integer
+
+
+ 4
+ ProjectName
+ string
+
+
+
+
+ TimeOut
+
+
+ Active
+
+
+ Closed
+
+
+ Total
+
+
+ ProjectName
+
+
+
+
+
+ 1
+ TimeOut
+ integer
+
+
+ 2
+ Active
+ integer
+
+
+ 3
+ Closed
+ integer
+
+
+ 4
+ Total
+ integer
+
+
+ 5
+ ProjectName
+ string
+
+
+
+ Data Source
+
+ = totalRow) return false;
+
+ var result = resultList.get(countOfRow);
+ row["TimeOut"] = result.get("timeOut");;
+ row["Active"] = result.get("active");
+ row["Closed"] = result.get("total") - result.get("active");
+ row["Total"] = result.get("total");
+ row["ProjectName"] = result.get("projectName");
+
+countOfRow ++;
+return true;]]>
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 2.5.1
+ Bar Chart
+ Side-by-side
+
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+ true
+
+
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+ true
+ 5
+ 5
+
+
+
+ 0
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+
+
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+ true
+
+
+
+ 0
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 2.0
+ 2.0
+ 2.0
+ 2.0
+
+
+
+
+
+
+
+
+ Vertical
+ Top_Bottom
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ true
+
+ Right
+ Series
+
+
+
+
+
+
+
+
+ 0
+ 255
+ 255
+ 255
+
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 0.0
+ 2.0
+ 0.0
+ 3.0
+
+ false
+
+ Above
+
+
+ 0.0
+ 0.0
+ 540.0
+ 216.0
+
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+ true
+
+ Two_Dimensional_With_Depth
+ Points
+ 10.0
+ 0
+
+ enable.area.alt
+ false
+
+
+
+ 'A','B','C','D','E'
+
+
+ 6,4,12,8,10
+ 0
+
+
+ 12.0,8.0,24.0,16.0,20.0
+ 1
+
+
+ 18.0,12.0,36.0,24.0,30.0
+ 2
+
+
+ 24.0,16.0,48.0,32.0,40.0
+ 3
+
+
+
+ true
+ None
+
+
+
+ This chart contains no data.
+
+
+ Center
+ Center
+
+
+
+
+ 64
+ 127
+ 127
+ 127
+
+
+
+ 128
+ 127
+ 127
+ 127
+
+ true
+
+
+ 10.0
+ 10.0
+ 10.0
+ 10.0
+
+ false
+
+
+ Text
+
+
+ X-Axis Title
+
+ 14.0
+ true
+
+ Center
+ Center
+
+
+
+
+ 0
+ 255
+ 255
+ 255
+
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+
+
+ 0.0
+ 2.0
+ 0.0
+ 3.0
+
+ false
+
+ Below
+
+ Linear
+
+
+ Y-Axis Title
+
+ 14.0
+ true
+
+ Center
+ Center
+
+ 90.0
+
+
+
+ 0
+ 255
+ 255
+ 255
+
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+
+
+ 0.0
+ 2.0
+ 0.0
+ 3.0
+
+ false
+
+ Left
+
+
+
+
+
+
+ 255
+ 80
+ 166
+ 218
+
+
+ 255
+ 242
+ 88
+ 106
+
+
+ 255
+ 232
+ 172
+ 57
+
+
+ 255
+ 128
+ 255
+ 128
+
+
+ 255
+ 64
+ 128
+ 128
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 170
+ 85
+ 85
+
+
+ 255
+ 128
+ 128
+ 0
+
+
+ 255
+ 192
+ 192
+ 192
+
+
+ 255
+ 255
+ 255
+ 128
+
+
+ 255
+ 128
+ 192
+ 128
+
+
+ 255
+ 7
+ 146
+ 94
+
+
+ 255
+ 0
+ 128
+ 255
+
+
+ 255
+ 255
+ 128
+ 192
+
+
+ 255
+ 0
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 128
+
+
+ 255
+ 0
+ 128
+ 192
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 255
+ 0
+ 255
+
+
+ 255
+ 128
+ 64
+ 64
+
+
+ 255
+ 255
+ 128
+ 64
+
+
+ 255
+ 80
+ 240
+ 120
+
+
+ 255
+ 0
+ 64
+ 128
+
+
+ 255
+ 128
+ 0
+ 64
+
+
+ 255
+ 255
+ 0
+ 128
+
+
+ 255
+ 128
+ 128
+ 64
+
+
+ 255
+ 128
+ 128
+ 128
+
+
+ 255
+ 255
+ 128
+ 255
+
+
+ 255
+ 0
+ 64
+ 0
+
+
+ 255
+ 0
+ 0
+ 0
+
+
+ 255
+ 255
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 0
+
+
+
+ true
+
+
+ row["TimeOut"]
+
+ true
+ Text
+ Min
+
+
+ Time Out Sprint
+
+
+ Orthogonal_Value
+
+ ,
+
+ Outside
+ false
+ Rectangle
+
+
+ Text
+ Sum
+
+
+
+
+
+
+
+
+ 255
+ 242
+ 88
+ 106
+
+
+ 255
+ 232
+ 172
+ 57
+
+
+ 255
+ 128
+ 255
+ 128
+
+
+ 255
+ 64
+ 128
+ 128
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 170
+ 85
+ 85
+
+
+ 255
+ 128
+ 128
+ 0
+
+
+ 255
+ 192
+ 192
+ 192
+
+
+ 255
+ 255
+ 255
+ 128
+
+
+ 255
+ 128
+ 192
+ 128
+
+
+ 255
+ 7
+ 146
+ 94
+
+
+ 255
+ 0
+ 128
+ 255
+
+
+ 255
+ 255
+ 128
+ 192
+
+
+ 255
+ 0
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 128
+
+
+ 255
+ 0
+ 128
+ 192
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 255
+ 0
+ 255
+
+
+ 255
+ 128
+ 64
+ 64
+
+
+ 255
+ 255
+ 128
+ 64
+
+
+ 255
+ 80
+ 240
+ 120
+
+
+ 255
+ 0
+ 64
+ 128
+
+
+ 255
+ 128
+ 0
+ 64
+
+
+ 255
+ 255
+ 0
+ 128
+
+
+ 255
+ 128
+ 128
+ 64
+
+
+ 255
+ 128
+ 128
+ 128
+
+
+ 255
+ 255
+ 128
+ 255
+
+
+ 255
+ 0
+ 64
+ 0
+
+
+ 255
+ 0
+ 0
+ 0
+
+
+ 255
+ 255
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 0
+
+
+ 255
+ 80
+ 166
+ 218
+
+
+
+ true
+
+
+ row["Active"]
+
+ false
+ Text
+ Min
+
+
+ Active Sprint
+
+
+ Orthogonal_Value
+
+ ,
+
+ Outside
+ false
+ Rectangle
+
+
+ Text
+ Sum
+
+
+
+
+
+
+
+
+ 255
+ 232
+ 172
+ 57
+
+
+ 255
+ 128
+ 255
+ 128
+
+
+ 255
+ 64
+ 128
+ 128
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 170
+ 85
+ 85
+
+
+ 255
+ 128
+ 128
+ 0
+
+
+ 255
+ 192
+ 192
+ 192
+
+
+ 255
+ 255
+ 255
+ 128
+
+
+ 255
+ 128
+ 192
+ 128
+
+
+ 255
+ 7
+ 146
+ 94
+
+
+ 255
+ 0
+ 128
+ 255
+
+
+ 255
+ 255
+ 128
+ 192
+
+
+ 255
+ 0
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 128
+
+
+ 255
+ 0
+ 128
+ 192
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 255
+ 0
+ 255
+
+
+ 255
+ 128
+ 64
+ 64
+
+
+ 255
+ 255
+ 128
+ 64
+
+
+ 255
+ 80
+ 240
+ 120
+
+
+ 255
+ 0
+ 64
+ 128
+
+
+ 255
+ 128
+ 0
+ 64
+
+
+ 255
+ 255
+ 0
+ 128
+
+
+ 255
+ 128
+ 128
+ 64
+
+
+ 255
+ 128
+ 128
+ 128
+
+
+ 255
+ 255
+ 128
+ 255
+
+
+ 255
+ 0
+ 64
+ 0
+
+
+ 255
+ 0
+ 0
+ 0
+
+
+ 255
+ 255
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 0
+
+
+ 255
+ 80
+ 166
+ 218
+
+
+ 255
+ 242
+ 88
+ 106
+
+
+
+ true
+
+
+ Math.abs(row["Closed"])
+
+ false
+ Text
+ Min
+
+
+ Closed Sprint
+
+
+ Orthogonal_Value
+
+ ,
+
+ Outside
+ false
+ Rectangle
+
+
+ Text
+ Sum
+
+
+
+
+
+
+
+
+ 255
+ 128
+ 255
+ 128
+
+
+ 255
+ 64
+ 128
+ 128
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 170
+ 85
+ 85
+
+
+ 255
+ 128
+ 128
+ 0
+
+
+ 255
+ 192
+ 192
+ 192
+
+
+ 255
+ 255
+ 255
+ 128
+
+
+ 255
+ 128
+ 192
+ 128
+
+
+ 255
+ 7
+ 146
+ 94
+
+
+ 255
+ 0
+ 128
+ 255
+
+
+ 255
+ 255
+ 128
+ 192
+
+
+ 255
+ 0
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 128
+
+
+ 255
+ 0
+ 128
+ 192
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 255
+ 0
+ 255
+
+
+ 255
+ 128
+ 64
+ 64
+
+
+ 255
+ 255
+ 128
+ 64
+
+
+ 255
+ 80
+ 240
+ 120
+
+
+ 255
+ 0
+ 64
+ 128
+
+
+ 255
+ 128
+ 0
+ 64
+
+
+ 255
+ 255
+ 0
+ 128
+
+
+ 255
+ 128
+ 128
+ 64
+
+
+ 255
+ 128
+ 128
+ 128
+
+
+ 255
+ 255
+ 128
+ 255
+
+
+ 255
+ 0
+ 64
+ 0
+
+
+ 255
+ 0
+ 0
+ 0
+
+
+ 255
+ 255
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 0
+
+
+ 255
+ 80
+ 166
+ 218
+
+
+ 255
+ 242
+ 88
+ 106
+
+
+ 255
+ 232
+ 172
+ 57
+
+
+
+ true
+
+
+ row["Total"]
+
+ false
+ Text
+ Min
+
+
+ Total Sprint
+
+
+ Orthogonal_Value
+
+ ,
+
+ Outside
+ false
+ Rectangle
+
+
+ Text
+ Sum
+
+
+ Vertical
+
+
+ 1
+ true
+
+
+ Left
+
+
+
+ 1
+
+ 255
+ 196
+ 196
+ 196
+
+ false
+
+ Across
+
+
+ 1
+
+ 255
+ 196
+ 196
+ 196
+
+ true
+
+
+
+
+
+ 1
+
+ 255
+ 225
+ 225
+ 225
+
+ false
+
+ Across
+
+
+ 1
+
+ 255
+ 225
+ 225
+ 225
+
+ false
+
+
+
+ 5
+
+
+ Min
+
+ 0.0
+
+
+ true
+ false
+
+
+
+
+
+
+
+ 255
+ 80
+ 166
+ 218
+
+
+ 255
+ 242
+ 88
+ 106
+
+
+ 255
+ 232
+ 172
+ 57
+
+
+ 255
+ 128
+ 255
+ 128
+
+
+ 255
+ 64
+ 128
+ 128
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 170
+ 85
+ 85
+
+
+ 255
+ 128
+ 128
+ 0
+
+
+ 255
+ 192
+ 192
+ 192
+
+
+ 255
+ 255
+ 255
+ 128
+
+
+ 255
+ 128
+ 192
+ 128
+
+
+ 255
+ 7
+ 146
+ 94
+
+
+ 255
+ 0
+ 128
+ 255
+
+
+ 255
+ 255
+ 128
+ 192
+
+
+ 255
+ 0
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 128
+
+
+ 255
+ 0
+ 128
+ 192
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 255
+ 0
+ 255
+
+
+ 255
+ 128
+ 64
+ 64
+
+
+ 255
+ 255
+ 128
+ 64
+
+
+ 255
+ 80
+ 240
+ 120
+
+
+ 255
+ 0
+ 64
+ 128
+
+
+ 255
+ 128
+ 0
+ 64
+
+
+ 255
+ 255
+ 0
+ 128
+
+
+ 255
+ 128
+ 128
+ 64
+
+
+ 255
+ 128
+ 128
+ 128
+
+
+ 255
+ 255
+ 128
+ 255
+
+
+ 255
+ 0
+ 64
+ 0
+
+
+ 255
+ 0
+ 0
+ 0
+
+
+ 255
+ 255
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 0
+
+
+
+ true
+
+
+ row["ProjectName"]
+
+
+
+
+ Orthogonal_Value
+
+ ,
+
+ Outside
+ false
+
+
+ true
+ Text
+ Sum
+
+
+ Horizontal
+
+
+ 1
+ true
+
+
+ Below
+
+
+
+ 1
+
+ 255
+ 196
+ 196
+ 196
+
+ false
+
+ Across
+
+
+ 1
+
+ 255
+ 196
+ 196
+ 196
+
+ true
+
+
+
+
+
+ 1
+
+ 255
+ 225
+ 225
+ 225
+
+ false
+
+ Across
+
+
+ 1
+
+ 255
+ 225
+ 225
+ 225
+
+ false
+
+
+
+ 5
+
+
+ Min
+
+ 0.0
+
+
+ true
+ true
+ false
+
+ Vertical
+
+ false
+
+]]>
+ SVG
+ false
+ Data Set
+ 3in
+ 7.5in
+
+
+ TimeOut
+ dataSetRow["TimeOut"]
+ integer
+
+
+ Active
+ dataSetRow["Active"]
+ integer
+
+
+ Closed
+ dataSetRow["Closed"]
+ integer
+
+
+ Total
+ dataSetRow["Total"]
+ integer
+
+
+ ProjectName
+ dataSetRow["ProjectName"]
+ string
+
+
+
+
+
diff --git a/scrum/webapp/scrum/reports/ProjectByStatusChart.rptdesign b/scrum/webapp/scrum/reports/ProjectByStatusChart.rptdesign
new file mode 100644
index 000000000..654ce2b85
--- /dev/null
+++ b/scrum/webapp/scrum/reports/ProjectByStatusChart.rptdesign
@@ -0,0 +1,1062 @@
+
+
+ Eclipse BIRT Designer Version 2.6.1.v20100902 Build <2.6.1.v20100915-1750>
+ in
+
+ /templates/blank_report.gif
+ auto layout
+ ltr
+ 92
+
+
+ static
+ string
+ true
+ simple
+ text-box
+
+ Unformatted
+
+
+
+
+
+
+
+
+
+
+ 1
+ DataName
+ string
+
+
+ 2
+ DataValue
+ integer
+
+
+
+
+ DataName
+
+
+ DataValue
+
+
+
+
+
+ 1
+ DataName
+ string
+
+
+ 2
+ DataValue
+ integer
+
+
+
+ Data Source
+
+
+
+
+
+
+
+
+
+
+
+
+
+ html
+
+
+
+
+
+
+
+ 2.5.1
+ Pie Chart
+ Standard
+
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+ North
+ Horizontal
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 0
+ 255
+ 255
+ 255
+
+ true
+
+
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 0
+ 255
+ 255
+ 255
+
+ true
+ 5
+ 5
+
+
+ 0
+ 255
+ 255
+ 255
+
+
+
+ 0
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+
+
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 0
+ 255
+ 255
+ 255
+
+ true
+
+
+
+ 0
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 0
+ 255
+ 255
+ 255
+
+
+ 2.0
+ 2.0
+ 2.0
+ 2.0
+
+
+
+
+
+
+
+
+ Vertical
+ Top_Bottom
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ true
+
+ Right
+ Categories
+
+
+
+
+
+
+
+
+ 0
+ 255
+ 255
+ 255
+
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 0.0
+ 2.0
+ 0.0
+ 3.0
+
+ false
+
+ Above
+
+
+ 0.0
+ 0.0
+ 432.0
+ 216.0
+
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+ true
+
+ Two_Dimensional_With_Depth
+ Points
+ 10.0
+ 0
+
+ enable.area.alt
+ false
+
+
+
+ 'A','B','C','D','E'
+
+
+ 6,4,12,8,10
+ 0
+
+
+
+ true
+ None
+
+
+
+ This chart contains no data.
+
+
+ Center
+ Center
+
+
+
+
+ 64
+ 127
+ 127
+ 127
+
+
+
+ 128
+ 127
+ 127
+ 127
+
+ true
+
+
+ 10.0
+ 10.0
+ 10.0
+ 10.0
+
+ false
+
+
+
+
+
+
+
+ 255
+ 80
+ 166
+ 218
+
+
+ 255
+ 242
+ 88
+ 106
+
+
+ 255
+ 232
+ 172
+ 57
+
+
+ 255
+ 128
+ 255
+ 128
+
+
+ 255
+ 64
+ 128
+ 128
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 170
+ 85
+ 85
+
+
+ 255
+ 128
+ 128
+ 0
+
+
+ 255
+ 192
+ 192
+ 192
+
+
+ 255
+ 255
+ 255
+ 128
+
+
+ 255
+ 128
+ 192
+ 128
+
+
+ 255
+ 7
+ 146
+ 94
+
+
+ 255
+ 0
+ 128
+ 255
+
+
+ 255
+ 255
+ 128
+ 192
+
+
+ 255
+ 0
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 128
+
+
+ 255
+ 0
+ 128
+ 192
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 255
+ 0
+ 255
+
+
+ 255
+ 128
+ 64
+ 64
+
+
+ 255
+ 255
+ 128
+ 64
+
+
+ 255
+ 80
+ 240
+ 120
+
+
+ 255
+ 0
+ 64
+ 128
+
+
+ 255
+ 128
+ 0
+ 64
+
+
+ 255
+ 255
+ 0
+ 128
+
+
+ 255
+ 128
+ 128
+ 64
+
+
+ 255
+ 128
+ 128
+ 128
+
+
+ 255
+ 255
+ 128
+ 255
+
+
+ 255
+ 0
+ 64
+ 0
+
+
+ 255
+ 0
+ 0
+ 0
+
+
+ 255
+ 255
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 0
+
+
+
+
+
+
+ Text
+
+
+
+
+ 255
+ 80
+ 166
+ 218
+
+
+ 255
+ 242
+ 88
+ 106
+
+
+ 255
+ 232
+ 172
+ 57
+
+
+ 255
+ 128
+ 255
+ 128
+
+
+ 255
+ 64
+ 128
+ 128
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 170
+ 85
+ 85
+
+
+ 255
+ 128
+ 128
+ 0
+
+
+ 255
+ 192
+ 192
+ 192
+
+
+ 255
+ 255
+ 255
+ 128
+
+
+ 255
+ 128
+ 192
+ 128
+
+
+ 255
+ 7
+ 146
+ 94
+
+
+ 255
+ 0
+ 128
+ 255
+
+
+ 255
+ 255
+ 128
+ 192
+
+
+ 255
+ 0
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 128
+
+
+ 255
+ 0
+ 128
+ 192
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 255
+ 0
+ 255
+
+
+ 255
+ 128
+ 64
+ 64
+
+
+ 255
+ 255
+ 128
+ 64
+
+
+ 255
+ 80
+ 240
+ 120
+
+
+ 255
+ 0
+ 64
+ 128
+
+
+ 255
+ 128
+ 0
+ 64
+
+
+ 255
+ 255
+ 0
+ 128
+
+
+ 255
+ 128
+ 128
+ 64
+
+
+ 255
+ 128
+ 128
+ 128
+
+
+ 255
+ 255
+ 128
+ 255
+
+
+ 255
+ 0
+ 64
+ 0
+
+
+ 255
+ 0
+ 0
+ 0
+
+
+ 255
+ 255
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 0
+
+
+
+ true
+
+
+ row["DataValue"]
+
+ Text
+ Sum
+
+
+
+
+
+ Orthogonal_Value
+
+ ,
+
+ Outside
+ false
+ 0
+ categoryData
+
+
+
+
+ 16.0
+ true
+
+
+
+
+ 0
+ 255
+ 255
+ 255
+
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+
+
+ 0.0
+ 2.0
+ 0.0
+ 3.0
+
+ true
+
+ Below
+
+
+ 1
+ true
+
+ Fixed_Length
+ 10.0
+
+
+ Text
+ Sum
+
+
+
+ true
+
+
+ row["DataName"]
+
+
+
+
+ Orthogonal_Value
+
+ ,
+
+ Outside
+ false
+
+
+ true
+ Text
+ Sum
+
+
+
+]]>
+ SVG
+ false
+ Data Set
+ 3in
+ 6in
+
+
+ DataName
+ dataSetRow["DataName"]
+ string
+
+
+ DataValue
+ dataSetRow["DataValue"]
+ integer
+
+
+
+
+
diff --git a/scrum/webapp/scrum/reports/TaskByStatusChart.rptdesign b/scrum/webapp/scrum/reports/TaskByStatusChart.rptdesign
new file mode 100644
index 000000000..e0a2b3c98
--- /dev/null
+++ b/scrum/webapp/scrum/reports/TaskByStatusChart.rptdesign
@@ -0,0 +1,2068 @@
+
+
+ Eclipse BIRT Designer Version 2.6.1.v20100902 Build <2.6.1.v20100915-1750>
+ in
+
+ /templates/blank_report.gif
+ ltr
+ 96
+
+
+ static
+ string
+ true
+ simple
+ text-box
+
+ Unformatted
+
+
+
+
+
+
+
+
+
+
+ 1
+ Completed
+ integer
+
+
+ 2
+ Implemented
+ integer
+
+
+ 3
+ TotalTask
+ integer
+
+
+ 4
+ TaskType
+ string
+
+
+
+
+ Completed
+
+
+ Implemented
+
+
+ TotalTask
+
+
+ TaskType
+
+
+
+
+
+ 1
+ Completed
+ integer
+
+
+ 2
+ Implemented
+ integer
+
+
+ 3
+ TotalTask
+ integer
+
+
+ 4
+ TaskType
+ string
+
+
+
+ Data Source
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 2.5.1
+ Bar Chart
+ Side-by-side
+
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+ true
+
+
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+ true
+ 5
+ 5
+
+
+
+ 0
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+
+
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+ true
+
+
+
+ 0
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 2.0
+ 2.0
+ 2.0
+ 2.0
+
+
+
+
+
+
+
+
+ Vertical
+ Top_Bottom
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ true
+
+ Right
+ Series
+
+
+
+
+
+
+
+
+ 0
+ 255
+ 255
+ 255
+
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 0.0
+ 2.0
+ 0.0
+ 3.0
+
+ false
+
+ Above
+
+
+ 0.0
+ 0.0
+ 540.0
+ 216.0
+
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+ true
+
+ Two_Dimensional_With_Depth
+ Points
+ 10.0
+
+ enable.area.alt
+ false
+
+
+
+ A, B, C
+
+
+ 5,4,12
+ 0
+
+
+ 10.0,8.0,24.0
+ 1
+
+
+ 15.0,12.0,36.0
+ 2
+
+
+
+
+
+ This chart contains no data.
+
+
+ Center
+ Center
+
+
+
+
+ 64
+ 127
+ 127
+ 127
+
+
+
+ 128
+ 127
+ 127
+ 127
+
+ true
+
+
+ 10.0
+ 10.0
+ 10.0
+ 10.0
+
+ false
+
+
+ Text
+
+
+ X-Axis Title
+
+ 14.0
+ true
+
+ Center
+ Center
+
+
+
+
+ 0
+ 255
+ 255
+ 255
+
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+
+
+ 0.0
+ 2.0
+ 0.0
+ 3.0
+
+ false
+
+ Below
+
+ Linear
+
+
+ Y-Axis Title
+
+ 14.0
+ true
+
+ Center
+ Center
+
+ 90.0
+
+
+
+ 0
+ 255
+ 255
+ 255
+
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+
+
+ 0.0
+ 2.0
+ 0.0
+ 3.0
+
+ false
+
+ Left
+
+
+
+
+
+
+ 255
+ 80
+ 166
+ 218
+
+
+ 255
+ 242
+ 88
+ 106
+
+
+ 255
+ 232
+ 172
+ 57
+
+
+ 255
+ 128
+ 255
+ 128
+
+
+ 255
+ 64
+ 128
+ 128
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 170
+ 85
+ 85
+
+
+ 255
+ 128
+ 128
+ 0
+
+
+ 255
+ 192
+ 192
+ 192
+
+
+ 255
+ 255
+ 255
+ 128
+
+
+ 255
+ 128
+ 192
+ 128
+
+
+ 255
+ 7
+ 146
+ 94
+
+
+ 255
+ 0
+ 128
+ 255
+
+
+ 255
+ 255
+ 128
+ 192
+
+
+ 255
+ 0
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 128
+
+
+ 255
+ 0
+ 128
+ 192
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 255
+ 0
+ 255
+
+
+ 255
+ 128
+ 64
+ 64
+
+
+ 255
+ 255
+ 128
+ 64
+
+
+ 255
+ 80
+ 240
+ 120
+
+
+ 255
+ 0
+ 64
+ 128
+
+
+ 255
+ 128
+ 0
+ 64
+
+
+ 255
+ 255
+ 0
+ 128
+
+
+ 255
+ 128
+ 128
+ 64
+
+
+ 255
+ 128
+ 128
+ 128
+
+
+ 255
+ 255
+ 128
+ 255
+
+
+ 255
+ 0
+ 64
+ 0
+
+
+ 255
+ 0
+ 0
+ 0
+
+
+ 255
+ 255
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 0
+
+
+
+ true
+
+
+ row["Completed"]
+
+ Text
+ Sum
+
+
+ Completed
+
+
+ Orthogonal_Value
+
+ ,
+
+ Outside
+ false
+ Rectangle
+
+
+ Text
+ Sum
+
+
+
+
+
+
+
+
+ 255
+ 242
+ 88
+ 106
+
+
+ 255
+ 232
+ 172
+ 57
+
+
+ 255
+ 128
+ 255
+ 128
+
+
+ 255
+ 64
+ 128
+ 128
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 170
+ 85
+ 85
+
+
+ 255
+ 128
+ 128
+ 0
+
+
+ 255
+ 192
+ 192
+ 192
+
+
+ 255
+ 255
+ 255
+ 128
+
+
+ 255
+ 128
+ 192
+ 128
+
+
+ 255
+ 7
+ 146
+ 94
+
+
+ 255
+ 0
+ 128
+ 255
+
+
+ 255
+ 255
+ 128
+ 192
+
+
+ 255
+ 0
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 128
+
+
+ 255
+ 0
+ 128
+ 192
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 255
+ 0
+ 255
+
+
+ 255
+ 128
+ 64
+ 64
+
+
+ 255
+ 255
+ 128
+ 64
+
+
+ 255
+ 80
+ 240
+ 120
+
+
+ 255
+ 0
+ 64
+ 128
+
+
+ 255
+ 128
+ 0
+ 64
+
+
+ 255
+ 255
+ 0
+ 128
+
+
+ 255
+ 128
+ 128
+ 64
+
+
+ 255
+ 128
+ 128
+ 128
+
+
+ 255
+ 255
+ 128
+ 255
+
+
+ 255
+ 0
+ 64
+ 0
+
+
+ 255
+ 0
+ 0
+ 0
+
+
+ 255
+ 255
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 0
+
+
+ 255
+ 80
+ 166
+ 218
+
+
+
+ true
+
+
+ Math.abs(row["Implemented"])
+
+ false
+ Text
+ Sum
+
+
+ Implemented
+
+
+ Orthogonal_Value
+
+ ,
+
+ Outside
+ false
+ Rectangle
+
+
+ Text
+ Sum
+
+
+
+
+
+
+
+
+ 255
+ 232
+ 172
+ 57
+
+
+ 255
+ 128
+ 255
+ 128
+
+
+ 255
+ 64
+ 128
+ 128
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 170
+ 85
+ 85
+
+
+ 255
+ 128
+ 128
+ 0
+
+
+ 255
+ 192
+ 192
+ 192
+
+
+ 255
+ 255
+ 255
+ 128
+
+
+ 255
+ 128
+ 192
+ 128
+
+
+ 255
+ 7
+ 146
+ 94
+
+
+ 255
+ 0
+ 128
+ 255
+
+
+ 255
+ 255
+ 128
+ 192
+
+
+ 255
+ 0
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 128
+
+
+ 255
+ 0
+ 128
+ 192
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 255
+ 0
+ 255
+
+
+ 255
+ 128
+ 64
+ 64
+
+
+ 255
+ 255
+ 128
+ 64
+
+
+ 255
+ 80
+ 240
+ 120
+
+
+ 255
+ 0
+ 64
+ 128
+
+
+ 255
+ 128
+ 0
+ 64
+
+
+ 255
+ 255
+ 0
+ 128
+
+
+ 255
+ 128
+ 128
+ 64
+
+
+ 255
+ 128
+ 128
+ 128
+
+
+ 255
+ 255
+ 128
+ 255
+
+
+ 255
+ 0
+ 64
+ 0
+
+
+ 255
+ 0
+ 0
+ 0
+
+
+ 255
+ 255
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 0
+
+
+ 255
+ 80
+ 166
+ 218
+
+
+ 255
+ 242
+ 88
+ 106
+
+
+
+ true
+
+
+ row["TotalTask"]
+
+ false
+ Text
+ Sum
+
+
+ Total Task
+
+
+ Orthogonal_Value
+
+ ,
+
+ Outside
+ false
+ Rectangle
+
+
+ Text
+ Sum
+
+
+ Vertical
+
+
+ 1
+ true
+
+
+ Left
+
+
+
+ 1
+
+ 255
+ 196
+ 196
+ 196
+
+ false
+
+ Across
+
+
+ 1
+
+ 255
+ 196
+ 196
+ 196
+
+ true
+
+
+
+
+
+ 1
+
+ 255
+ 225
+ 225
+ 225
+
+ false
+
+ Across
+
+
+ 1
+
+ 255
+ 225
+ 225
+ 225
+
+ false
+
+
+
+ 5
+
+
+ Min
+
+ 0.0
+
+
+ true
+ false
+
+
+
+
+
+
+
+ 255
+ 80
+ 166
+ 218
+
+
+ 255
+ 242
+ 88
+ 106
+
+
+ 255
+ 232
+ 172
+ 57
+
+
+ 255
+ 128
+ 255
+ 128
+
+
+ 255
+ 64
+ 128
+ 128
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 170
+ 85
+ 85
+
+
+ 255
+ 128
+ 128
+ 0
+
+
+ 255
+ 192
+ 192
+ 192
+
+
+ 255
+ 255
+ 255
+ 128
+
+
+ 255
+ 128
+ 192
+ 128
+
+
+ 255
+ 7
+ 146
+ 94
+
+
+ 255
+ 0
+ 128
+ 255
+
+
+ 255
+ 255
+ 128
+ 192
+
+
+ 255
+ 0
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 128
+
+
+ 255
+ 0
+ 128
+ 192
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 255
+ 0
+ 255
+
+
+ 255
+ 128
+ 64
+ 64
+
+
+ 255
+ 255
+ 128
+ 64
+
+
+ 255
+ 80
+ 240
+ 120
+
+
+ 255
+ 0
+ 64
+ 128
+
+
+ 255
+ 128
+ 0
+ 64
+
+
+ 255
+ 255
+ 0
+ 128
+
+
+ 255
+ 128
+ 128
+ 64
+
+
+ 255
+ 128
+ 128
+ 128
+
+
+ 255
+ 255
+ 128
+ 255
+
+
+ 255
+ 0
+ 64
+ 0
+
+
+ 255
+ 0
+ 0
+ 0
+
+
+ 255
+ 255
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 0
+
+
+
+ true
+
+
+ row["TaskType"]
+
+
+
+
+ Orthogonal_Value
+
+ ,
+
+ Outside
+ false
+
+
+ true
+ Text
+ Sum
+
+
+ Horizontal
+
+
+ 1
+ true
+
+
+ Below
+
+
+
+ 1
+
+ 255
+ 196
+ 196
+ 196
+
+ false
+
+ Across
+
+
+ 1
+
+ 255
+ 196
+ 196
+ 196
+
+ true
+
+
+
+
+
+ 1
+
+ 255
+ 225
+ 225
+ 225
+
+ false
+
+ Across
+
+
+ 1
+
+ 255
+ 225
+ 225
+ 225
+
+ false
+
+
+
+ 5
+
+
+ Min
+
+ 0.0
+
+
+ true
+ true
+ false
+
+ Vertical
+ 50.0
+
+
+]]>
+ SVG
+ true
+ Data Set
+ 3in
+ 7.5in
+
+
+ Completed
+ dataSetRow["Completed"]
+ integer
+
+
+ Implemented
+ dataSetRow["Implemented"]
+ integer
+
+
+ TotalTask
+ dataSetRow["TotalTask"]
+ integer
+
+
+ TaskType
+ dataSetRow["TaskType"]
+ string
+
+
+
+
+
diff --git a/scrum/webapp/scrum/reports/TaskByTypeChart.rptdesign b/scrum/webapp/scrum/reports/TaskByTypeChart.rptdesign
new file mode 100644
index 000000000..1f3f52c76
--- /dev/null
+++ b/scrum/webapp/scrum/reports/TaskByTypeChart.rptdesign
@@ -0,0 +1,1155 @@
+
+
+ Eclipse BIRT Designer Version 2.6.1.v20100902 Build <2.6.1.v20100915-1750>
+ in
+
+ /templates/blank_report.gif
+ auto layout
+ ltr
+ 92
+
+
+ static
+ string
+ true
+ simple
+ text-box
+
+ Unformatted
+
+
+
+
+
+
+
+
+
+
+ 1
+ TaskName
+ string
+
+
+ 2
+ TaskValue
+ string
+
+
+
+
+ TaskName
+
+
+ TaskValue
+
+
+
+
+
+ 1
+ TaskName
+ string
+
+
+ 2
+ TaskValue
+ string
+
+
+
+ Data Source
+
+
+
+
+
+
+
+
+
+
+
+
+
+ html
+
+
+
+
+
+
+
+ 2.5.1
+ Pie Chart
+ Standard
+
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+ North
+ Horizontal
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+ true
+
+
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+ true
+ 5
+ 5
+
+
+
+ 0
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+
+
+
+
+ 0.0
+ 0.0
+ 0.0
+ 0.0
+
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+ true
+
+
+
+ 0
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 2.0
+ 2.0
+ 2.0
+ 2.0
+
+
+
+
+
+
+
+
+ Vertical
+ Top_Bottom
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ true
+
+ Right
+ Categories
+
+
+
+
+
+
+
+
+ 0
+ 255
+ 255
+ 255
+
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+
+ 0.0
+ 2.0
+ 0.0
+ 3.0
+
+ false
+
+ Above
+
+
+ 0.0
+ 0.0
+ 432.0
+ 216.0
+
+
+ 3.0
+ 3.0
+ 3.0
+ 3.0
+
+ -1
+ -1
+ -1
+ -1
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+ false
+
+ true
+
+ Two_Dimensional_With_Depth
+ Points
+ 10.0
+ 0
+
+ enable.area.alt
+ false
+
+
+
+ 'A','B','C','D','E'
+
+
+ 6,4,12,8,10
+ 0
+
+
+
+ true
+ None
+
+
+
+ This chart contains no data.
+
+
+ Center
+ Center
+
+
+
+
+ 64
+ 127
+ 127
+ 127
+
+
+
+ 128
+ 127
+ 127
+ 127
+
+ true
+
+
+ 10.0
+ 10.0
+ 10.0
+ 10.0
+
+ false
+
+
+
+
+
+
+
+ 255
+ 80
+ 166
+ 218
+
+
+ 255
+ 242
+ 88
+ 106
+
+
+ 255
+ 232
+ 172
+ 57
+
+
+ 255
+ 128
+ 255
+ 128
+
+
+ 255
+ 64
+ 128
+ 128
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 170
+ 85
+ 85
+
+
+ 255
+ 128
+ 128
+ 0
+
+
+ 255
+ 192
+ 192
+ 192
+
+
+ 255
+ 255
+ 255
+ 128
+
+
+ 255
+ 128
+ 192
+ 128
+
+
+ 255
+ 7
+ 146
+ 94
+
+
+ 255
+ 0
+ 128
+ 255
+
+
+ 255
+ 255
+ 128
+ 192
+
+
+ 255
+ 0
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 128
+
+
+ 255
+ 0
+ 128
+ 192
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 255
+ 0
+ 255
+
+
+ 255
+ 128
+ 64
+ 64
+
+
+ 255
+ 255
+ 128
+ 64
+
+
+ 255
+ 80
+ 240
+ 120
+
+
+ 255
+ 0
+ 64
+ 128
+
+
+ 255
+ 128
+ 0
+ 64
+
+
+ 255
+ 255
+ 0
+ 128
+
+
+ 255
+ 128
+ 128
+ 64
+
+
+ 255
+ 128
+ 128
+ 128
+
+
+ 255
+ 255
+ 128
+ 255
+
+
+ 255
+ 0
+ 64
+ 0
+
+
+ 255
+ 0
+ 0
+ 0
+
+
+ 255
+ 255
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 0
+
+
+
+
+
+
+ Text
+
+
+
+
+ 255
+ 80
+ 166
+ 218
+
+
+ 255
+ 242
+ 88
+ 106
+
+
+ 255
+ 232
+ 172
+ 57
+
+
+ 255
+ 128
+ 255
+ 128
+
+
+ 255
+ 64
+ 128
+ 128
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 170
+ 85
+ 85
+
+
+ 255
+ 128
+ 128
+ 0
+
+
+ 255
+ 192
+ 192
+ 192
+
+
+ 255
+ 255
+ 255
+ 128
+
+
+ 255
+ 128
+ 192
+ 128
+
+
+ 255
+ 7
+ 146
+ 94
+
+
+ 255
+ 0
+ 128
+ 255
+
+
+ 255
+ 255
+ 128
+ 192
+
+
+ 255
+ 0
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 128
+
+
+ 255
+ 0
+ 128
+ 192
+
+
+ 255
+ 128
+ 128
+ 192
+
+
+ 255
+ 255
+ 0
+ 255
+
+
+ 255
+ 128
+ 64
+ 64
+
+
+ 255
+ 255
+ 128
+ 64
+
+
+ 255
+ 80
+ 240
+ 120
+
+
+ 255
+ 0
+ 64
+ 128
+
+
+ 255
+ 128
+ 0
+ 64
+
+
+ 255
+ 255
+ 0
+ 128
+
+
+ 255
+ 128
+ 128
+ 64
+
+
+ 255
+ 128
+ 128
+ 128
+
+
+ 255
+ 255
+ 128
+ 255
+
+
+ 255
+ 0
+ 64
+ 0
+
+
+ 255
+ 0
+ 0
+ 0
+
+
+ 255
+ 255
+ 255
+ 255
+
+
+ 255
+ 255
+ 128
+ 0
+
+
+
+ true
+
+
+ row["TaskValue"]
+
+ Text
+ Sum
+
+
+
+
+
+ Orthogonal_Value
+
+ ,
+
+ Outside
+ false
+ 0
+ categoryData
+
+
+
+
+ 16.0
+ true
+
+
+
+
+ 0
+ 255
+ 255
+ 255
+
+
+
+ 1
+
+ 255
+ 0
+ 0
+ 0
+
+
+
+ 0.0
+ 2.0
+ 0.0
+ 3.0
+
+ true
+
+ Below
+
+
+ 1
+ true
+
+ Fixed_Length
+ 10.0
+
+
+ Text
+ Sum
+
+
+
+ true
+
+
+ row["TaskName"]
+
+
+
+
+ Orthogonal_Value
+
+ ,
+
+ Outside
+ false
+
+
+ true
+ Text
+ Sum
+
+
+
+]]>
+ SVG
+ false
+
+ Data Set
+ 3in
+ 6in
+
+
+ TaskName
+ dataSetRow["TaskName"]
+ string
+
+
+ TaskValue
+ dataSetRow["TaskValue"]
+ string
+
+
+
+
+
diff --git a/scrum/widget/CommonScreens.xml b/scrum/widget/CommonScreens.xml
new file mode 100644
index 000000000..b3cae5f12
--- /dev/null
+++ b/scrum/widget/CommonScreens.xml
@@ -0,0 +1,544 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/scrum/widget/CommunicationEventForms.xml b/scrum/widget/CommunicationEventForms.xml
new file mode 100644
index 000000000..529420e40
--- /dev/null
+++ b/scrum/widget/CommunicationEventForms.xml
@@ -0,0 +1,220 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/scrum/widget/EmailTemplates.xml b/scrum/widget/EmailTemplates.xml
new file mode 100644
index 000000000..27f3f0244
--- /dev/null
+++ b/scrum/widget/EmailTemplates.xml
@@ -0,0 +1,152 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/scrum/widget/FieldLookupForms.xml b/scrum/widget/FieldLookupForms.xml
new file mode 100644
index 000000000..d84b7efe0
--- /dev/null
+++ b/scrum/widget/FieldLookupForms.xml
@@ -0,0 +1,58 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/scrum/widget/LookupScreens.xml b/scrum/widget/LookupScreens.xml
new file mode 100644
index 000000000..4a9132695
--- /dev/null
+++ b/scrum/widget/LookupScreens.xml
@@ -0,0 +1,51 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/scrum/widget/MyWorkForms.xml b/scrum/widget/MyWorkForms.xml
new file mode 100644
index 000000000..99e2fddce
--- /dev/null
+++ b/scrum/widget/MyWorkForms.xml
@@ -0,0 +1,166 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/scrum/widget/MyWorkScreens.xml b/scrum/widget/MyWorkScreens.xml
new file mode 100644
index 000000000..97d0346b5
--- /dev/null
+++ b/scrum/widget/MyWorkScreens.xml
@@ -0,0 +1,164 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/scrum/widget/OpenTestForms.xml b/scrum/widget/OpenTestForms.xml
new file mode 100644
index 000000000..165a7e9d7
--- /dev/null
+++ b/scrum/widget/OpenTestForms.xml
@@ -0,0 +1,299 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/scrum/widget/OpenTestScreens.xml b/scrum/widget/OpenTestScreens.xml
new file mode 100644
index 000000000..1e2c19646
--- /dev/null
+++ b/scrum/widget/OpenTestScreens.xml
@@ -0,0 +1,157 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/scrum/widget/ProjectForms.xml b/scrum/widget/ProjectForms.xml
new file mode 100644
index 000000000..5cd51ec29
--- /dev/null
+++ b/scrum/widget/ProjectForms.xml
@@ -0,0 +1,101 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/scrum/widget/ResourceForms.xml b/scrum/widget/ResourceForms.xml
new file mode 100644
index 000000000..3a92bac4d
--- /dev/null
+++ b/scrum/widget/ResourceForms.xml
@@ -0,0 +1,412 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/scrum/widget/ResourceScreens.xml b/scrum/widget/ResourceScreens.xml
new file mode 100644
index 000000000..a3ae4c122
--- /dev/null
+++ b/scrum/widget/ResourceScreens.xml
@@ -0,0 +1,424 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/scrum/widget/TaskForms.xml b/scrum/widget/TaskForms.xml
new file mode 100644
index 000000000..148af1411
--- /dev/null
+++ b/scrum/widget/TaskForms.xml
@@ -0,0 +1,975 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/scrum/widget/TaskScreens.xml b/scrum/widget/TaskScreens.xml
new file mode 100644
index 000000000..03bb2858d
--- /dev/null
+++ b/scrum/widget/TaskScreens.xml
@@ -0,0 +1,499 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/scrum/widget/TimeSheetForms.xml b/scrum/widget/TimeSheetForms.xml
new file mode 100644
index 000000000..b270aa18b
--- /dev/null
+++ b/scrum/widget/TimeSheetForms.xml
@@ -0,0 +1,201 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/scrum/widget/TimeSheetScreens.xml b/scrum/widget/TimeSheetScreens.xml
new file mode 100644
index 000000000..1e4046b72
--- /dev/null
+++ b/scrum/widget/TimeSheetScreens.xml
@@ -0,0 +1,102 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/scrum/widget/demotest/DemotestScreen.xml b/scrum/widget/demotest/DemotestScreen.xml
new file mode 100644
index 000000000..a31a56c11
--- /dev/null
+++ b/scrum/widget/demotest/DemotestScreen.xml
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/scrum/widget/scrumForms.xml b/scrum/widget/scrumForms.xml
new file mode 100644
index 000000000..f2e4a2057
--- /dev/null
+++ b/scrum/widget/scrumForms.xml
@@ -0,0 +1,3227 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/scrum/widget/scrumMenus.xml b/scrum/widget/scrumMenus.xml
new file mode 100644
index 000000000..71919f792
--- /dev/null
+++ b/scrum/widget/scrumMenus.xml
@@ -0,0 +1,1103 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/scrum/widget/scrumScreens.xml b/scrum/widget/scrumScreens.xml
new file mode 100644
index 000000000..a52450f80
--- /dev/null
+++ b/scrum/widget/scrumScreens.xml
@@ -0,0 +1,2965 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+