diff --git a/component-load.xml b/component-load.xml index 86da03f69..3a84e66a5 100644 --- a/component-load.xml +++ b/component-load.xml @@ -27,6 +27,7 @@ under the License. + diff --git a/scrum/README.txt b/scrum/README.txt new file mode 100644 index 000000000..d520bd459 --- /dev/null +++ b/scrum/README.txt @@ -0,0 +1,42 @@ +How to install the revision of task function. +============================================= + +Server requirements +1. subversion +2. libapache2-mod-python + +Installation (On server) + +1. Install subversion +2. Hook script setting + 2.1 post-commit file is hook script file that will work when users commit source code to subversion repository. + Copy post-commit file from "scrum/data/hookscripts/post-commit" to hooks folder of repository and then edit file following : + Example : python /usr/share/subversion/hook-scripts/commit.py "$REPOS" "$REV" + 2.2 commit.py file is python file which will send revision information to Scrum web service. + Copy commit.py from "scrum/data/hookscripts/commit.py" to "/usr/share/subversion/hook-scripts/" and then edit file following : + --------------------------------------------------------------------------------- + CONFIG_PATH = "" // the path of the revision.properties should begin from home directory. + Example : CONFIG_PATH = "/home/ofbiz/ofbiz/hot-deploy/scrum/config/revision.properties" + -------------------------------------------------------------------------------- +3. Configure file setting : The original configure file is in scrum component (/scrum/config/revision.properties) you can put it + anywhere that you wish but should be set the path of the file in commit.py file ("CONFIG_PATH="). + Example: + -------------------------------------------------------------------------------- + revision.url =https://www.antwebsystems.com/svn/ + ofbiz.webservice.url =http://www.antwebsystems.com/webtools/control/SOAPService + host.name =www.antwebsystems.com + host.port =80 + + #-- subversion admin and password + svn.user=harry + svn.password=harryssecret + -------------------------------------------------------------------------------- +4. Change the location path of the updateScrumRevision service in .../scrum/servicedef/services.xml file. + Example: + -------------------------------------------------------------------------------- + // the same as ofbiz.webservice.url + + + -------------------------------------------------------------------------------- +5. Restart the server. diff --git a/scrum/build.xml b/scrum/build.xml new file mode 100644 index 000000000..bc36f4be9 --- /dev/null +++ b/scrum/build.xml @@ -0,0 +1,107 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/scrum/config/revision.properties b/scrum/config/revision.properties new file mode 100644 index 000000000..0d6171ec3 --- /dev/null +++ b/scrum/config/revision.properties @@ -0,0 +1,34 @@ +############################################################################### +# 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. +############################################################################### + +# -- The section +[config] +# -- revision url example : https://www.antwebsystems.com/svn/ +revision.url=https://www.antwebsystems.com/svn/ + +# -- The OFBiz Web Service url +ofbiz.webservice.url=http://www.antwebsystems.com/webtools/control/SOAPService + +# -- the Host name should be the name of host or by default "localhost" +host.name=www.antwebsystems.com +host.port=80 + +# -- subversion user and password +svn.user=general +svn.password=general23 diff --git a/scrum/config/scrumUiLabels.xml b/scrum/config/scrumUiLabels.xml new file mode 100644 index 000000000..c413fd49d --- /dev/null +++ b/scrum/config/scrumUiLabels.xml @@ -0,0 +1,1277 @@ + + + + Add all reported/approved task time to a new invoice + + + Projekt hinzufügen + Add Project + Ajouter un projet + Aggiungi progetto + Project toevoegen + เพิ่มโปรเจค + 增加项目 + + + Projektinhalt hinzufügen + Add Project Content + Ajouter un contenu au projet + Aggiungi contenuto progetto + Projectcontent toevoegen + เพิ่มหัวข้อโปรเจ็ค + 添加项目内容 + + + Füge alle gemeldeten/genehmigten Aufgabenzeiten einer neuen Abrechnung hinzu + Add all reported/approved task time to a new invoice + Ajouter tout le temps de la tâche rapporté/approuvé à une nouvelle facture/ + Aggiungi tutte le timbrature approvate ad una nuova fattura + Alle gerapporteerde/goedgekeurde uren toevoegen aan nieuwe faktuur + 把全部已报告/已批准的任务时间添加到一个新的发票 + + + Add Public Holiday + + + Add Sprint + + + Add Sprint Backlog + + + Aufgabe hinzufügen + Add Task + Ajouter une tâche + Aggiungi compito + Taak toevoegen + เพิ่มงาน + 增加任务 + + + Aufgabennotiz hinzufügen + Add Task Notes + Ajouter des notes à la tâche + Aggiungi note compito + Notitie toevoegen + เพิ่มข้อความงาน + 增加任务备注 + + + Neue wöchentliche Zeiterfassung hinzufügen + Add a new weekly Timesheet + Ajouter une nouvelle feuille d'activité hebdomadaire + Aggiungi una nuova timbratura settimanale + Nieuwe urenstaat toevoegen + เพิ่มตารางเวลารายสัปดาห์ใหม่ + 增加新的周时间表 + + + All Backlog + + + Backlog Item Note List + + + Billing + + + Aktuelle Zeiterfassung + Current Timesheet + Feuille d'activité courante + Timbrature attuali + Huidige urenstaat + ตารางเวลาที่ใช้กันอยู่ในปัจจุบัน + 当前时间表 + + + Daily Meeting Minutes + + + Product Backlog Default Tasks + + + Edit Product Backlog Default Tasks + + + Edit Product + + + Edit Product Backlog Category + + + Edit Product Backlog Items + + + Edit Project + + + Edit Sprint + + + Aufgabe editieren + Edit Task + Modifier la tâche + Aggiorna compito + Taak wijzigen + แก้ไขงาน + 编辑任务 + + + Find Backlog + + + Ressourcen suchen + Find Resource + Rechercher la ressource + Ricerca risorsa + Resource zoeken + ค้นหาแหล่งที่มา + 查找资源 + + + Find Revision + + + Aufgabe suchen + Find Task + Rechercher la tâche + Ricerca compito + Taak zoeken + ค้นหางาน + 查找任务 + + + Find Time Entry Not yet Billed + + + Zeiterfassungsbogen suchen + Find TimeSheet + Rechercher une feuille d'activité + Ricerca timbratura + Urenstaat zoeken + ค้นหาตารางเวลา + 查找时间表 + + + Hours not yet billed + + + Liste Aufgabennotizen auf + List Task Notes + Voir les notes de la tâche + Lista note compito + Notities tonen + แสดงรายการข้อความงาน + 任务备注列表 + + + New Backlog Item Note + + + New Task Note + + + Open Test + + + Product + + + Product Backlog + + + Product Backlog Categories + + + Product Backlog Communications + + + Product Backlog Contents + + + Product Backlog Items Communication + + + Product Backlog Items Contents + + + Product Backlog Items Overview + + + Product Backlog Overview + + + Product Overview + + + Project and Sprint List + + + Public Holiday + + + Public Holiday List + + + Scrum Default Tasks + + + Scrum Members + + + Product Members + + + Project Contents + + + Project Members + + + Project Overview + + + Sprint Members + + + Sprint Overview + + + Öffne die mir zugeordneten Aufgaben + Open Tasks Assigned to me. + Ouvrir les tâches qui me sont affectées + Compiti aperti assegnati a me. + Openstaande taken voor mij + งานที่มอบหมายให้ฉัน + 打开分配给我的任务 + + + Aufgabeninformationen + Task information + Information sur la tâche + Informazione compito + Informatie + ข้อมูลงาน + 任务信息 + + + Task Member + + + Task Note List + + + Zeiterfassung + Timesheet + Feuille d'activité + Timbratura + ตารางเวลา + 时间表 + + + Zeiterfassungsliste + Timesheet list + Liste des feuilles d'activité + Lista Timbrature + Overzicht urenstaten + แสดงรายการตารางเวลา + 时间表列表 + + + Total Backlog + + + Total Task + + + Unplan Backlog Item + + + Actual Hours + + + Act Hrs Not Bill + + + Ist-Stunden gesamt + Act Total + Total réel + Totale attuale + Werk. total + 实际总时间 + + + Administration + + + Add Member + + + Add Company and Product Owner + + + Add Daily Meeting Minutes + + + Add New Product Backlog Item + + + Add Product Member + + + Add Scrum Member + + + Add Sprint + + + Add Sprint Backlog + + + Add Sprint Member + + + Add Task Member + + + Zeitbuchung hinzufügen + Add Time Entry + Ajouter une échéance + Aggiungi voce tempo + Urenregel toevoegen + เพิ่มตารางเวลา + 增加时间条目 + + + Add New Unplan Backlog Item + + + All Backlog Items + + + Answer + + + SCRUM Application + scrum应用程序 + + + Assign + + + Weise mir eine vorhandene Aufgabe zu. + Assign an existing Task to me. + M'affecter une tâche existante + Assegna un compito esistente a me. + Taak aan mijzelf toewijzen + กำหนดงานที่มีอยู่ให้ฉัน + 给我分配一个已有的任务 + + + Assigned To + + + Assign To + + + Backlog + + + Backlog Id + + + Backlogs Information Chart + + + Backlog Item + + + Add Backlog Item Content + + + Backlog Item Category + + + Backlog Item Content List + + + Product Backlog Item Status List + + + Backlog List + + + Backlogs Status Chart + + + What are you going to do before the next meeting? + + + Being Implemented + + + Billed + + + You do not have permission to view this page. ("SCRUM_BILLING_VIEW" or "SCRUM_BILLING_ADMIN" needed) + + + Burndown Chart + + + Cancel Product Backlog + + + Category + + + Categories + + + Markieren wenn Fertiggestellt + Check Complete + Marqué(e) comme terminé(e) + Controllo completato + Voor compleet markeren + 是否完成 + + + Child Emails + + + Close Sprint + + + Coding Tasks List + + + Committer + + + Communications + + + Company + + + Company and Person + + + Company and Product Owner + + + OFBiz: SCRUM + + + Company Name + + + Company Party Id + + + Part of the Open For Business Family of Open Source Software + 开源软件OFBiz的组成部分 + + + Projektinhaltsliste + Project Content List + Liste des contenus du projet + Lsista contenuti progetto + Content + 项目内容列表 + + + Copy Member From Last Sprint + + + Create Default Tasks + + + Create New Party + + + Create Party Relationship + + + Create Project + + + Create Sprint + + + Create Task for Product Backlog + + + Create Task for Sprint Backlog Item + + + Create Task for Unplan Backlog Item + + + Customer Request Item Name + + + custRequestId + + + Default Tasks + + + Default Tasks List + + + Edit Delete Backlog Item + + + The Scrum Component Demonstration + + + Description + + + Edit Backlog + + + Edit Default Task + + + Edit Product + + + Edit Product Backlog Category + + + Edit Project + + + Edit Sprint Backlog + + + Edit Sprint Information + + + Edit Unplan Backlog Item + + + Email Contents + + + Estimated Hours + + + Error Tasks List + + + Aufgabe: ${parameters.workEffortId} nicht gefunden + Task: ${parameters.workEffortId} not found + Tâche : ${parameters.workEffortId} non trouvée + Compito: ${parameters.workEffortId} non trovato + Taak ${parameters.workEffortId} werd niet gevonden + 任务:${parameters.workEffortId}没有找到 + + + Please enter actual hours for this task before set to complete task. + + + Aufgabe: ${parameters.workEffortId} wird nicht bearbeitet, es kann keine Anfrage hinzugefügt werden + Task: ${parameters.workEffortId} is not in progress, no request can be added + Tâche : ${parameters.workEffortId} n'est pas en cours, aucune demande ne peut être ajoutée + Compito: ${parameters.workEffortId} non è in corso, nessuna richiesta può essere aggiunta + Taak ${parameters.workEffortId} is nog niet begonnen. Verzoeken kunnen worden toegevoegd + 任务:${parameters.workEffortId}没有进展,没有添加请求 + + + Find Product + + + Find Product Backlog Item + + + Find Product Statistics + + + Find Project Member + + + Find Scrum Member + + + Find Task + + + First Name + + + Finished + + + Fr + Fri + ven + Ven + Vr + 周五 + + + Holiday Name + + + How to test + + + hr(s). + + + Include Meeting + + + Initial Planned Hours + + + Installation Tasks List + + + Invoice Date + + + Last Name + + + List of Sprint Backlogs + + + List Update Daily Meeting Minutes + + + Maximum Hours + + + 255 Chars Maximum + + + Member + + + Members + + + Members List + + + Member Name + + + Middle Name + + + Aufgabenteam + Task Team + Equipe de la tâche + Team compito + Taakteam + ทีมงาน + 任务团队 + + + Mo + Mon + lun + Lun + Ma + 周一 + + + Move to unplanned sprint + + + My Work + + + My Tasks + + + New Backlog Item + + + New Email + + + Add Error Task + + + New Product Backlog Email + + + New Sequence + + + New Sprint + + + New Task + + + You have no access to Product Backlog Section + + + You have no access to Member + + + You have no access to Mywork + + + You have no access to the Product + + + Keine Berechtigung für das Projekt#: ${projectId} + You have no access to the project#: ${projectId} + Vous n'avez pas accès au projet n° ${projectId} + Tu non hai accesso al progetto#: ${projectId} + Geen toegang tot project ${projectId} + คุณไม่มีสิทธิ์ในการเข้าใช้ถึงโปรเจค#: ${projectId} + 你没有访问该项目的权限:${projectId} + + + You have no access to the Scrum + + + You have no access to the Sprint + + + Keine Berechtigung für die Aufgabe#: ${taskId} oder Projekt#: ${projectId} + You have no access to the taskId: ${taskId} or projectId: ${projectId} + Vous n'avez pas accès à la tâche n° ${taskId} ou au projet n° ${projectId} + Tu non hai accesso al compito#: ${taskId} + Geen toegang tot taak ${taskId} of project ${projectId} + คุณไม่มีสิทธิ์ในการเข้าถึงงาน#: ${taskId} + 你没有访问该任务的权限:${taskId} + + + You have no access Test + + + Keine Berechtigung für die Stundenerfassung#: ${timesheetId} + You have no access to the timesheet#: ${timesheetId} + Vous n'avez pas accès à la feuille d'activité n° ${timesheetId} + Tu non hai accesso alla timbratura#: ${timesheetId} + Geen toegang tot urenstaat#: ${timesheetId} + คุณไม่มีสิทธิ์ในการเข้าถึงตารางเวลา#: ${timesheetId} + 你没有访问该时间表的权限:${timesheetId} + + + + Don't allow actual hours is more than plan hours + + + Don't allow Tasks plan hours is more than Sprint backlog plan hours + + + Not Billed + + + Open + + + Open Test + + + Owner Company + + + Party ${parameters.partyId} with role ${parameters.roleTypeId} can not assigned to work effort Id ${parameters.workEffortId} + + + Party Relationship + + + Planned + + + Planned Hours + + + Plan Hours + + + Plan Hrs + + + Pl hrs + + + Plan Time + + + What problem are you having with to task? + + + Product + + + Add Product Content + + + Product Backlog + + + Product Backlog Categories + + + Product Backlog Email + + + Product Backlog Email messages + + + Product Backlog Id + + + Product Backlog Item + + + Product Backlog Item Info + + + Product Backlogs Item List + + + Product Backlogs Name + + + Product Backlog Tasks + + + Product Content List + + + Product Information + + + Product List + + + Product Member + + + Product Members List + + + Product Name + + + Product Overview + + + Product Owner + + + Product Statistics + + + Product Update + + + Project + + + Project and Sprint List + + + Project And Sprint Information Chart + + + Aktuelles Projekt + Current Project + Projet courant + Progetto attuale + Huidig project + โปรเจคที่ใช้กันในปัจจุบัน + 当前项目 + + + Project Name + Projektname + Nom du projet + Nome progetto + Naam + ชื่อโปรเจค + 项目名称 + + + Project Goal + + + Project Members + + + Project Members List + + + Move To Product + + + Projects + + + Project/Sprint + + + Question + + + Quick Add Backlog + + + Quick Add New Task + + + Verechnungs Typ ID + Rate Type Id + Réf. du type de taux + Tipo percentuale + Soort tarief + 费率类型标识 + + + Faktura neuerstellen + re-create Invoice + Re-créer la facture + re-crea fattura + Faktuur opnieuw aanmaken + 重新创建发票 + + + Release + Release + Version + Rilascia + Versie + การยกเว้น + 发布 + + + re-open + + + Reply + + + Request Date + + + Requester Name + + + Ressourcenname + Resource Name + Nom de ressource + Nome risorsa + Naam + ชื่อแหล่งที่มา + 资源名称 + + + Request name + + + Revision + + + Revision List + + + Revisions + + + Role + + + Row Submit + Soumettre la ligne + Invia riga + Rij submitten + 提交行 + + + Sa + Sat + sam + Sab + Za + 周六 + + + Datum wählen + Select Date + Choisir la date + Seleziona data + Datum kiezen + 选择日期 + + + Seq + + + Vollständig + Complete + Achevé + Completa + Afgerond + เสร็จสมบูรณ์ + 完成 + + + Pausieren + On-Hold + En attente + Sospeso + Op hold + หยุดไว้ชั่วคราว + 暂停 + + + Set on project level + + + Set to Review + + + Scrum Members List + + + What have you accomplish since the last meeting? + + + Sprint + + + Sprint Backlog + + + How many Sprint Backlog(s)? + + + Sprint Backlog List + + + Sprint Goal + + + Sprint Information + + + Sprint Length + + + Sprint Length Weeks + + + Sprints List + + + Sprint Name + + + Sprint Member + + + Sprint members list + + + Move To Project + + + Status Backlog + + + Story + + + So + Sun + dim + Dom + Zo + 周日 + + +       + + + Task + + + Task Attachements + + + Aktuelle Aufgabe + Current Task + Tâche courante + Compito attuale + Huidige taak + งานที่ใช้กันอยู่ในปัจจุบัน + 当前任务 + + + Task Id + + + Kein Mitglied von irgendeinem Projekt, bitte Projektmanager kontaktieren + You are'nt member of any sprint, contact your project manager. + Vous n'êtes membre d'aucun projet, contactez votre directeur de projet + Tu non sei membro di nessun progetto, contatta il tuo responsabile di progetto. + Je bent geen actor van een sprint. Neem contact op met de projectmanager + คุณไม่เป็นสมาชิกของทุก ๆ สปริ้น, ติดต่อผู้จัดการโปรเจคของคุณ + 你不属于任何项目,请与你的项目经理联系 + + + Task Members List + + + Aufgabenname + Task Name + Nom de la tâche + Nome compito + Naam + ชื่องาน + 任务名称 + + + Aktuell sind keine 'offenen' Aufgaben hinterlegt + Currently no 'open' tasks are assigned to you. + Actuellement, aucune tâche ne vous est affectée. + Attualmente nessun compito 'aperto' è assegnato a te. + Geen 'open' taken voor jou aanwezig + ในปัจจุบันไม่เปิดเผยงานที่มอบหมายให้คุณ + 当前没有给你分配开放的任务 + + + Füge eine exitierende oder neue Aufgabe einem deiner Projekte hinzu + Add an existing or a new task to a project you are member of. + Ajouter une tâche, existante ou nouvelle, à un projet dont vous êtes membre + Aggiungere uno esistente o un nuovo compito al progetto che tu sei membro di. + Taak aan een van jouw projecten toevoegen + เพิ่มงานที่มีอยู่หรืองานใหม่ไปยังโปรเจคคุณเป็นสมาชิกของ + 给属于你的项目增加一个新的或者已经存在的任务 + + + Übergeordnete Phase + Parent Phase + Phase parente + Fase padre + Parentfase + กลุ่มขั้นตอนการทำงาน + 父阶段 + + + Aufgaben Zusammenfassung + Task Summary + Résumé de la tâche + Sommario compito + Samenvatting + สรุปงาน + 任务总览 + + + Tasks + + + Task Information Chart + + + Tasks List + + + Task Type + + + Test Tasks List + + + Do + Thu + jeu + Gio + Do + 周四 + + + Timesheet + + + You have to enter hours to timesheet id: [ ${warningMessage} ] + + + Fertiggestellt + To complete + Changer pour 'terminé' + Per completare + Naar gecompleteerd + ค้นหาโปรเจคแสดงขอบเขต + 查找项目的范围 + + + 100 Chars Maximum + + + Summe + Totals + Totaux + Totalen + + + Di + Tue + mar + Mar + Di + 周二 + + + Unplanned + + + Unplan Backlog List + + + Unplanned Backlog Item List + + + Unplanned Sprint + + + Update Product Backlog + + + Update Project + + + Verify Password + + + View Daily Meeting Minutes + + + You are not allowed to view this page. + 不允许你浏览这个页面。 + + + Wochen Nr. + Week Number + N° de semaine + Settimana numero + No. + 周数 + + + Mi + Wen + mer + Mer + Wo + 周三 + + + Status to In Process + + diff --git a/scrum/data/helpdata/DEMO-CONTENT.xml b/scrum/data/helpdata/DEMO-CONTENT.xml new file mode 100644 index 000000000..643a2e99d --- /dev/null +++ b/scrum/data/helpdata/DEMO-CONTENT.xml @@ -0,0 +1,36 @@ + + +
+ DEMO DATA CONTENT + + This is the demo data content file. There is 3 level for uploading content. + +
+ + Project Content + Product Content + Product Backlog Content + +
+
\ No newline at end of file diff --git a/scrum/data/helpdata/HELP_ROOT.xml b/scrum/data/helpdata/HELP_ROOT.xml new file mode 100644 index 000000000..b3ac52004 --- /dev/null +++ b/scrum/data/helpdata/HELP_ROOT.xml @@ -0,0 +1,35 @@ + + +
+ Welcome to the SCRUM help system +
+ If you arrived at this page without selecting the index, + then a specific help page was not yet available +
+
+ + This system will provide you context sensitive help throughout the + system. + +
+
\ No newline at end of file diff --git a/scrum/data/helpdata/HELP_SCRUM.xml b/scrum/data/helpdata/HELP_SCRUM.xml new file mode 100644 index 000000000..5306ba6b8 --- /dev/null +++ b/scrum/data/helpdata/HELP_SCRUM.xml @@ -0,0 +1,123 @@ + + +
+ Welcome to the SCRUM Component help system +
+ Introduction + + The purpose of this component is to have a web based and ERP integrated access and recording for all information + related to your Scrum project development. The Scrum development methodology itself is described in any of the following documents: + + Scrum guide (various languages) + Scrum in 30 seconds. + Scrum in 5 minutes + + + + Below follows a list how the system should be used and at what time you have to update the information within the Scrum component. + +
+
+ Create the available Scrum members + + Any activity in any of the Scrum actions need people who are members of the project. So create the people which will be involved in the "Members Tab". + You need to enter an existing person and company (partyGroup). Persons and companies (PartyGroup) need to be added in the party component first before they can be used in the Scrum component. + +
+
+ Create the product Backlog. + + Before anything can start a product backlog is required which will need a product to be created first. + So create a product assign the it to a product owner which was created in the Scrum member section. + Then go to the backlog and create the backlog items. + +
+
+ Create the project + + Now that we have a project backlog it is time to hold a project meeting. In this project meeting discuss the goals of the project, + the organization and the product backlog items and the estimated hours to complete each item. + + + Now create the project in the system and assign the members to the project with their roles. Attach the minutes of the meeting to the project. + +
+
+ Create the first sprint + + Now that there is a project we can look at creating the (first) sprint. + Have a Sprint meeting, define what should be implemented in the (first) sprint and how it should be implemented + + + Create now the (first) sprint in the system and enter also the number of backlog items which will be included in this sprint. Attach the minutes of the meeting to the project. + +
+
+ Create tasks on the sprint backlog items + + In order to be able to enter actual hours it is required to create at least a single task on every sprint backlog item. + +
+
+ Update daily the actual and planned hours + + Before going to the daily sprint meeting make sure the planned (backlog item) and actuals (tasks) are updated. + +
+
+ Daily sprint meeting + + Have a daily sprint meeting where the three famous questions are answered and enter the answers in the system related to this sprint. + +
+
+ Sprint burndown chart + + Keep an eye on the burndown chart if you are still on track. If not discuss with the product owner if backlog items have to be added or removed. + +
+
+ Sprint Demonstration and Evaluation meeting + + At the end of a sprint demonstrate the system to the product owner and interested parties. The product owner will incorporate comments into the current backlog list. + The team and Scrum master will evaluate the sprint so lessons can be learned for the next sprint. + + + Determine also which tasks were not completed and return them to the product backlog to be included in a next sprint. + +
+ + The sprint will be repeated until the project is complete. + +
+ Security + + In the Scrum component there are security roles to access in the Scrum component. + + 1. Product Owner can create product, project, and assign member in project. + 2. Scrum Master can do anything on the project. + 3. Scrum admin can do anything on Scrum component + 4. Scrum team can assign task to yourself and view project. +
+ +
\ No newline at end of file diff --git a/scrum/data/helpdata/HELP_SCRUM_AddProdBacklog.xml b/scrum/data/helpdata/HELP_SCRUM_AddProdBacklog.xml new file mode 100644 index 000000000..b3efbfcb3 --- /dev/null +++ b/scrum/data/helpdata/HELP_SCRUM_AddProdBacklog.xml @@ -0,0 +1,53 @@ + + +
+ Create New Product Backlog + + This screen includes details that need for creating new product backlog and display product backlog list. + +
+ Update Product + This part use to update product. + + The user can update product name and description. + Click submit button when insert above fields. + +
+
+ Add New Product Backlog + This part use to create new product backlog. + + Enter product backlog item name.*The Product Backlog is the master list of all functionality desired in the product, a Scrum team and its product owner begin by writing down everything they can think of easily. + Click submit button when insert above field. + +
+
+ Product Backlog List + This part use to display product backlog. + + Click at product backlog name when user need to update product backlog page. + Click at delete button when user need to delete some product backlogs. + +
+
diff --git a/scrum/data/helpdata/HELP_SCRUM_AddProduct.xml b/scrum/data/helpdata/HELP_SCRUM_AddProduct.xml new file mode 100644 index 000000000..1cacb711a --- /dev/null +++ b/scrum/data/helpdata/HELP_SCRUM_AddProduct.xml @@ -0,0 +1,39 @@ + + +
+ Create New Product + + This screen includes details that need for creating new product and display product list. + +
+ Add New Product + This part use to create new product. + + Select company name that related to product owner. + Insert the product name and description. + Click submit button when insert above fields. + +
+ +
\ No newline at end of file diff --git a/scrum/data/helpdata/HELP_SCRUM_AddSprint.xml b/scrum/data/helpdata/HELP_SCRUM_AddSprint.xml new file mode 100644 index 000000000..4937b0615 --- /dev/null +++ b/scrum/data/helpdata/HELP_SCRUM_AddSprint.xml @@ -0,0 +1,48 @@ + + +
+ Create Sprint Screen + + This screen includes details that need to create sprint. + +
+ Fields Description + This part use to explain the meaning of fields in create sprint form. + + "Sprint Name" field should contain the name of sprint. + "Description" field should contain the description of sprint. + "Start Date" field should contain the starting date of the sprint. + "End Date" field should contain the ending date of the sprint. + "How many Sprint Backlog(s)?" field should contain how many Sprint Backlog do you want from the top of Product Backlog. + +
+
+ How to create the sprint + This part use to explain how to create the sprint. + + Fill all of fields. + Click at the submit button. + +
+
diff --git a/scrum/data/helpdata/HELP_SCRUM_AddSprintBacklog.xml b/scrum/data/helpdata/HELP_SCRUM_AddSprintBacklog.xml new file mode 100644 index 000000000..75f60eccf --- /dev/null +++ b/scrum/data/helpdata/HELP_SCRUM_AddSprintBacklog.xml @@ -0,0 +1,32 @@ + + +
+ Add Sprint Backlog + This screen use to add product backlog item(s) that need in this sprint. + + Enter number of product backlog item(s) that need in this sprint. + Click submit button when insert above field. + *product backlog item(s) that are stored in this sprint come from top of product backlog. + +
\ No newline at end of file diff --git a/scrum/data/helpdata/HELP_SCRUM_CreateScrumProject.xml b/scrum/data/helpdata/HELP_SCRUM_CreateScrumProject.xml new file mode 100644 index 000000000..c6751401f --- /dev/null +++ b/scrum/data/helpdata/HELP_SCRUM_CreateScrumProject.xml @@ -0,0 +1,32 @@ + + +
+ Create New Scrum Project + + This screen includes details of Scrum project information fields that user have to be filled and then press create button for creating new one. + + 1. User can add Project Name, Description, Status, and Estimate Start Date + 2. Click 'Create' button when adding finish. + 3. There is project list to display relate with your project and user can update project than user created. +
diff --git a/scrum/data/helpdata/HELP_SCRUM_DailyScrumMeetingMinute.xml b/scrum/data/helpdata/HELP_SCRUM_DailyScrumMeetingMinute.xml new file mode 100644 index 000000000..68660f866 --- /dev/null +++ b/scrum/data/helpdata/HELP_SCRUM_DailyScrumMeetingMinute.xml @@ -0,0 +1,39 @@ + + +
+ Daily Scrum Meeting Minute Help + + Daily Scrum, brief, daily meetings (about 15 min) between + the Scrum Master and the Scrum Team. The purpose is to keep + work flowing smoothly and eliminate any impediments. + There are 3 perspectives to talk in meetings : + +
+ + What have you accomplish since the last meeting? + What are you going to do before the next meeting? + What problem are you having with to task? + +
+
\ No newline at end of file diff --git a/scrum/data/helpdata/HELP_SCRUM_EditBacklogItemContent.xml b/scrum/data/helpdata/HELP_SCRUM_EditBacklogItemContent.xml new file mode 100644 index 000000000..29b54acb9 --- /dev/null +++ b/scrum/data/helpdata/HELP_SCRUM_EditBacklogItemContent.xml @@ -0,0 +1,52 @@ + + +
+ Contents Help +
+ Backlog Item Contents + + This screen use for uploading any contents that concern to the Backlog Item. + The screen consists of : + + Backlog Item Content List + Add Backlog Item Content + + +
+
+ Backlog Item Content List + + To show the list of contents by Content Type Id and Content Name. There are 2 buttons in each content: + + Delete : To delete the uploaded content + Download : To download the uploaded content + + +
+
+ Add Backlog Item Content + + To upload the content. The content can be classified by choosing the Content Type Id and Mime Type Id. + +
+
\ No newline at end of file diff --git a/scrum/data/helpdata/HELP_SCRUM_EditProdBacklog.xml b/scrum/data/helpdata/HELP_SCRUM_EditProdBacklog.xml new file mode 100644 index 000000000..a21ceb957 --- /dev/null +++ b/scrum/data/helpdata/HELP_SCRUM_EditProdBacklog.xml @@ -0,0 +1,49 @@ + + +
+ Update product backlog , Add and Update product backlog item. + This page includes three part for updating product backlog, adding and updating new product backlog item. +
+ Update Product Backlog + This part use to update product backlog or back to previous page. + + Enter product backlog name that user need to update. + Select open and closed date time that user need to update for calculating work hours of product backlog. + Click update button when insert all above fields. + Click back button when user need to back to previous page. + +
+
+ Add New Product Backlog Item + This part use to add new product backlog item + + Enter product backlog item name. + Enter priority of this product backlog item. + Click submit button when insert all above fields. + +
+
+ Product Backlog Items List + This part use to display product backlog items + + Click at product backlog item name when user need to update it and click back button to back to previous page. + Click delete button when user need to delete some product backlog items. + +
+
\ No newline at end of file diff --git a/scrum/data/helpdata/HELP_SCRUM_EditProductContents.xml b/scrum/data/helpdata/HELP_SCRUM_EditProductContents.xml new file mode 100644 index 000000000..110505568 --- /dev/null +++ b/scrum/data/helpdata/HELP_SCRUM_EditProductContents.xml @@ -0,0 +1,52 @@ + + +
+ Contents Help +
+ Product Contents + + This screen use for uploading any contents that concern to the product. + The screen consists of : + + Product Content List + Add Product Content + + +
+
+ Product Content List + + To Show the list of contents by Content Type Id and Content Name. There are 2 buttons in each content: + + Delete : To delete the uploaded content + Download : To download the uploaded content + + +
+
+ Add Product Content + + To upload the content. The content can be classified by choosing the Content Type Id and Mime Type Id. + +
+
\ No newline at end of file diff --git a/scrum/data/helpdata/HELP_SCRUM_EditProjectContents.xml b/scrum/data/helpdata/HELP_SCRUM_EditProjectContents.xml new file mode 100644 index 000000000..980fcd9ca --- /dev/null +++ b/scrum/data/helpdata/HELP_SCRUM_EditProjectContents.xml @@ -0,0 +1,52 @@ + + +
+ Contents Help +
+ Project Contents + + This screen use for uploading any contents that concern to the project. + The screen consists of : + + Project Content List + Add Project Content + + +
+
+ Project Content List + + To show the list of contents by Content Type Id and Content Name. There are 2 buttons in each content: + + Delete : To delete the uploaded content + Download : To download the uploaded content + + +
+
+ Add Project Content + + To upload the content. The content can be classified by choosing the Content Type Id and Mime Type Id. + +
+
\ No newline at end of file diff --git a/scrum/data/helpdata/HELP_SCRUM_EditSprint.xml b/scrum/data/helpdata/HELP_SCRUM_EditSprint.xml new file mode 100644 index 000000000..a10901900 --- /dev/null +++ b/scrum/data/helpdata/HELP_SCRUM_EditSprint.xml @@ -0,0 +1,32 @@ + + +
+ Update Sprint. + This use for updating the Sprint. + + Product Name + Sprint Name + Sprint Goal + Status + Start Date + End date + Planed Hours + Sprint Length Weeks + +
\ No newline at end of file diff --git a/scrum/data/helpdata/HELP_SCRUM_EditSprintBacklog.xml b/scrum/data/helpdata/HELP_SCRUM_EditSprintBacklog.xml new file mode 100644 index 000000000..19e1feab4 --- /dev/null +++ b/scrum/data/helpdata/HELP_SCRUM_EditSprintBacklog.xml @@ -0,0 +1,26 @@ + + +
+ Update Sprint backlog. + This part use to update Sprint backlog such as planed hours, .... + + Enter Planed Hours field (Integer or floating point). + Click the update button to update the Sprint Backlog. + +
\ No newline at end of file diff --git a/scrum/data/helpdata/HELP_SCRUM_FindResource.xml b/scrum/data/helpdata/HELP_SCRUM_FindResource.xml new file mode 100644 index 000000000..37d82ce70 --- /dev/null +++ b/scrum/data/helpdata/HELP_SCRUM_FindResource.xml @@ -0,0 +1,58 @@ + + +
+ The Members menu in Scrum component +
+ Add members into scrum component + + The purpose of this is to add member into the scrum component. There are 3 screenlets to perform on the screen include with: + + Find Scrum Member + Add Scrum Member + Scrum Members List + + + +
+
+ Find Scrum Member + + To find member who is in the Scrum Component.There 5 criterias to identify - Company,Last Name,First Name,Middle Name and Group Id. + Then, click the button "Find" the solution will display on the Scrum Members List screenlet. + +
+
+ Add Scrum Member + + To add the member the Scrum Component by selecting at Company and Person and Group Id. + Then, click the button "Add" the solution will display on the Scrum Members List screenlet. + +
+
+ Scrum Members List + + This screenlet will show all of member who are in the Scrum Component by default. + There is the remove button for each list to remove member out form the Scrum Component. + +
+
diff --git a/scrum/data/helpdata/HELP_SCRUM_FindTimeSheet.xml b/scrum/data/helpdata/HELP_SCRUM_FindTimeSheet.xml new file mode 100644 index 000000000..e1d058611 --- /dev/null +++ b/scrum/data/helpdata/HELP_SCRUM_FindTimeSheet.xml @@ -0,0 +1,41 @@ + + +
+ Time Sheet help + In the screen to show the backlog list for testing +
+ Timesheet screen consists of. + + Find TimeSheet + Timesheet List + +
+
+ Find TimeSheet + + To find the required timesheet. + +
+
+ Timesheet List + + To show the timesheet. There is the To Complete button for setting the timesheet. + +
+
\ No newline at end of file diff --git a/scrum/data/helpdata/HELP_SCRUM_ListProductBacklogCategories.xml b/scrum/data/helpdata/HELP_SCRUM_ListProductBacklogCategories.xml new file mode 100644 index 000000000..ad3436da9 --- /dev/null +++ b/scrum/data/helpdata/HELP_SCRUM_ListProductBacklogCategories.xml @@ -0,0 +1,56 @@ + + +
+ List of ProductBacklog Categories Help +
+ List of ProductBacklog Categories + + This screen use for classification of the ProductBacklog. + The screen consists of : + + New Categories button + Product Backlog Categories + + +
+
+ New Categories button + + To create a new categories. When click on the button the screen appears + Edit Product Backlog Category instates the Product Backlog Categories List. + +
+
+ Product Backlog Categories + + To show Product Backlog Categories List,when click it's number the screen appears + Edit Product Backlog Category. + +
+
+ Edit Product Backlog Category + + The screen appears the criteria named "Category" to create a new category. + +
+
\ No newline at end of file diff --git a/scrum/data/helpdata/HELP_SCRUM_MyWork.xml b/scrum/data/helpdata/HELP_SCRUM_MyWork.xml new file mode 100644 index 000000000..acf67b44a --- /dev/null +++ b/scrum/data/helpdata/HELP_SCRUM_MyWork.xml @@ -0,0 +1,69 @@ + + +
+ MyWork +
+ + + This perform to work's information and update timesheet + + Current Timesheet + Open task assigned to me + Assign an exist Task to me + Add a new weekly Timesheet + Timesheet list of + + +
+
+ Current Timesheet + + To update a member's Timesheet and the set the task's status to complete when + the task has been done. + +
+
+ Open task assigned to me + + To show all tasks belong to the member and the tasks have not set to complete. + +
+
+ Assign an exist Task to me + + To select the task in the drop down list named "Task name" for assignment the the ownself. + +
+
+ Add a new weekly Timesheet + + To create a new Timesheet for user who login to the system. + +
+
+ Timesheet list of + + To show all Timesheet for user who login to the system. + +
+
\ No newline at end of file diff --git a/scrum/data/helpdata/HELP_SCRUM_NewProductEmail.xml b/scrum/data/helpdata/HELP_SCRUM_NewProductEmail.xml new file mode 100644 index 000000000..bf7898604 --- /dev/null +++ b/scrum/data/helpdata/HELP_SCRUM_NewProductEmail.xml @@ -0,0 +1,47 @@ + + +
+ New Email Help +
+ New E-mail + + The screen consists of : + + New Email + E-mail Contents + + +
+
+ New Email + + To insert the content to product owner. + +
+
+ E-mail Contents + + To offer the uploading to attack the file to E-mail. + +
+
\ No newline at end of file diff --git a/scrum/data/helpdata/HELP_SCRUM_OpenTest.xml b/scrum/data/helpdata/HELP_SCRUM_OpenTest.xml new file mode 100644 index 000000000..16d10d5b5 --- /dev/null +++ b/scrum/data/helpdata/HELP_SCRUM_OpenTest.xml @@ -0,0 +1,47 @@ + + +
+ Open Test help + This Screen shows the list of completed backlogs that's mean all implementation tasks are set to completed. + Select a project you want and 'Find'. After result appear Click on backlog to view backlog's details and you will see + the 'How to test' field that will describe how you could test the backlog. You can also make an error task on the backlog's overview screen + incase you found en error while you're testing. So the backlog will be disappear from the list. + +
+ The Open test screen consists of. + + Find Backlog + Backlog List + +
+
+ Find Backlog + + To find the backlog which remains the task status is "test". + +
+
+ Backlog List + + On the backlog list shows Sprint Name - click on sprint's name the action will go to sprint's overview, + Backlog item - click on Backlog's name the action will go to the backlog's overview, + and Status - to notify the backlog's status. + +
+
\ No newline at end of file diff --git a/scrum/data/helpdata/HELP_SCRUM_ProductBacklogEmails.xml b/scrum/data/helpdata/HELP_SCRUM_ProductBacklogEmails.xml new file mode 100644 index 000000000..7cd71ac8a --- /dev/null +++ b/scrum/data/helpdata/HELP_SCRUM_ProductBacklogEmails.xml @@ -0,0 +1,48 @@ + + +
+ Communication Help +
+ Communication + + This screen use for communication e-mails. + The screen consists of : + + New Email Button + Product Backlog Email + + +
+
+ New Email Button + + To create a new email. + +
+
+ Product Backlog Email + + To show the sending e-mail that is sent to product owner include with Subject,Status Id,Form,To and Created. + +
+
\ No newline at end of file diff --git a/scrum/data/helpdata/HELP_SCRUM_ProductEmails.xml b/scrum/data/helpdata/HELP_SCRUM_ProductEmails.xml new file mode 100644 index 000000000..ec004fe19 --- /dev/null +++ b/scrum/data/helpdata/HELP_SCRUM_ProductEmails.xml @@ -0,0 +1,48 @@ + + +
+ Communication Help +
+ Communication + + This screen use for communication e-mails. + The screen consists of : + + New Email + E-mail + + +
+
+ New Email + + To create a new email. + +
+
+ Add Product Content + + To show the sending e-mail that is sent to product owner include with Subject,Status Id,Form,To and Created. + +
+
\ No newline at end of file diff --git a/scrum/data/helpdata/HELP_SCRUM_ProductView.xml b/scrum/data/helpdata/HELP_SCRUM_ProductView.xml new file mode 100644 index 000000000..c16457970 --- /dev/null +++ b/scrum/data/helpdata/HELP_SCRUM_ProductView.xml @@ -0,0 +1,37 @@ + + +
+ Product help +
+ + In the Scrum component, First product owner must create product to assign into project later. + +
+ In product screen consist of. + 1. Add product button : For this button only product owner and scrum admin can see it. Click go to create product page + 2. Find product : You can find active product. You can find by productId or product name + 3. Product List : Show list active product and you can select the product to update and add the backlog to your product +
+ +
+
\ No newline at end of file diff --git a/scrum/data/helpdata/HELP_SCRUM_Project.xml b/scrum/data/helpdata/HELP_SCRUM_Project.xml new file mode 100644 index 000000000..a86f7301e --- /dev/null +++ b/scrum/data/helpdata/HELP_SCRUM_Project.xml @@ -0,0 +1,30 @@ + + +
+ Project help +
+ + This screen displays Informations of the project. There are sprint, member and other. + +
+
\ No newline at end of file diff --git a/scrum/data/helpdata/HELP_SCRUM_SprintList.xml b/scrum/data/helpdata/HELP_SCRUM_SprintList.xml new file mode 100644 index 000000000..a01e4b74b --- /dev/null +++ b/scrum/data/helpdata/HELP_SCRUM_SprintList.xml @@ -0,0 +1,45 @@ + + +
+ Sprint List Screen + + This screen includes the details of particular forms. + +
+ Description + This part use to explain the meaning of the buttons/forms/fields in Sprint List Screen. + + "Add Sprint" button, press it if you want to create the sprint (Only Scrum Master can see this button). + "List of Sprint" form, contained and display the all of sprint in the system. + +
+
+ How to add the Sprint + This part use to explain how to add the Sprint. Scrum Master is only one who has permission to add the Sprint + + Login as Scrum Master. + Click at the "Add Sprint" button. + +
+
diff --git a/scrum/data/helpdata/HELP_SCRUM_SprintMember.xml b/scrum/data/helpdata/HELP_SCRUM_SprintMember.xml new file mode 100644 index 000000000..1f77bdaeb --- /dev/null +++ b/scrum/data/helpdata/HELP_SCRUM_SprintMember.xml @@ -0,0 +1,41 @@ + + +
+ Sprint Member + + This screen includes Add Sprint Backlog and Sprint member list. + +
+ Add Sprint Backlog + This part use for updating sprint member. + + Select the Project Members Drop down list, then Role Type Id will auto appear. + Set From date to member attack to the sprint and set Thru date to get the member out of the sprint + +
+
+ Sprint member list + Show the print member list.There is a Remove button for set member out of the Sprint. +
+
diff --git a/scrum/data/helpdata/HELP_SCRUM_TaskView.xml b/scrum/data/helpdata/HELP_SCRUM_TaskView.xml new file mode 100644 index 000000000..b83bdb0fb --- /dev/null +++ b/scrum/data/helpdata/HELP_SCRUM_TaskView.xml @@ -0,0 +1,31 @@ + + +
+ View Task help + The view task show Task description. +
+ In View Task screen consist of. + + New Task button : To create new task. + Task information. + Sprint Backlog Item Note. + Task Attachements. + +
+
\ No newline at end of file diff --git a/scrum/data/helpdata/HELP_SCRUM_ViewProdBacklogItem.xml b/scrum/data/helpdata/HELP_SCRUM_ViewProdBacklogItem.xml new file mode 100644 index 000000000..9b44a40bd --- /dev/null +++ b/scrum/data/helpdata/HELP_SCRUM_ViewProdBacklogItem.xml @@ -0,0 +1,86 @@ + + +
+ Product Backlog Item Overview +
+ + + On the product overview there are 8 sub menus -Overview,Update,Backlog,Billing,Default Tasks,Categories, + Content,and Communications + + + The product overview consist of: + + Product Backlog Item Information + Product Backlog Email messages + Revisions List + Product Backlog Item Status List + Tasks + E-mail + Backlog Item Content List + + +
+
+ Product Backlog Item Information + + Show the Product Backlog Item information. + +
+
+ Product Backlog Email messages + + Show Product Backlog Email . + +
+
+ Revisions List + + + +
+
+ Product Backlog Item Status List + + Show the Product Backlog Item Status since the Product Backlog Item have created. + +
+
+ Tasks + + List of task in the Product Backlog. + +
+
+ E-mail + + List of the E-mails that belong to Product Backlog Item. + +
+
+ Backlog Item Content List + + List of the E-mails that belong to Product Backlog Item. + +
+
diff --git a/scrum/data/helpdata/HELP_SCRUM_ViewProduct.xml b/scrum/data/helpdata/HELP_SCRUM_ViewProduct.xml new file mode 100644 index 000000000..1d8d52f27 --- /dev/null +++ b/scrum/data/helpdata/HELP_SCRUM_ViewProduct.xml @@ -0,0 +1,86 @@ + + +
+ Product Overview +
+ + + On the product overview there are 8 sub menus -Overview,Update,Backlog,Billing,Default Tasks,Categories, + Content,and Communications + + + The product overview consist of: + + Product Information + Backlogs Status Chart + Find Product Backlog Item + Product Backlogs Item List + Emails + Product Content List + Project and Sprint List + + +
+
+ Product Information + + Show the product's information. + +
+
+ Backlogs Status Chart + + Show backlogs' status in the pie chart concerning with open(yellow),be implement(blue),and finished(red). + +
+
+ Find Product Backlog Item + + To find any Product backlog which belongs to the product. + +
+
+ Product Backlogs Item List + + Product Backlogs Item List will show the backlogs which are not in the sprint by default. + +
+
+ Emails + + List of the e-mails which are sent to the product owner who created the product. + +
+
+ Product Content List + + List of the contents which concern to the product. + +
+
+ Project and Sprint List + + To show the project which concerns this product and the sprint list which belong to project. + +
+
diff --git a/scrum/data/helpdata/HELP_SCRUM_ViewSprint.xml b/scrum/data/helpdata/HELP_SCRUM_ViewSprint.xml new file mode 100644 index 000000000..5ace1c2c4 --- /dev/null +++ b/scrum/data/helpdata/HELP_SCRUM_ViewSprint.xml @@ -0,0 +1,42 @@ + + +
+ Sprint View Screen + + This screen the details of sprint. + +
+ Burndown Chart + A burn down chart is a graphical representation of work left to do versus time. + The outstanding work (or backlog) is often on the vertical axis, with time along the horizontal. + That is, it is a run chart of outstanding work. It is useful for predicting when all of the work will be completed. + The hour burndown chart provides you with the following information: + + Actual Hours -- The number of hours remaining until the version release date. + Planned Hours -- The minus of the previous planned hours and the current actual hours. + Ideal Hours -- The ideal burndown. This is computed with the remaining estimates, not the original estimates of the hours remaining at the version's start date. + Daily Completed -- The total time worked by the team (the current actual hours). + +
+
diff --git a/scrum/data/helpdata/HELP_SCRUM_defaultTasks.xml b/scrum/data/helpdata/HELP_SCRUM_defaultTasks.xml new file mode 100644 index 000000000..a63b31b30 --- /dev/null +++ b/scrum/data/helpdata/HELP_SCRUM_defaultTasks.xml @@ -0,0 +1,56 @@ + + +
+ Default Tasks Help +
+ Default Tasks + + This screen use for setting the task that will be generated automatically when the backlog is create. + The screen consists of : + + Create A Default Task button + Default Task List + + +
+
+ Create A Default Task button + + To create a new default task. When click on the button the screen appears + Edit Default Task instates the Default Tasks List. + +
+
+ Default Tasks List + + To show Default Tasks List,when click it's name the screen appears + Edit Default Task. + +
+
+ Edit Default Task + + The screen appears the criteria that can be updated. + +
+
\ No newline at end of file diff --git a/scrum/data/hookscripts/commit.py b/scrum/data/hookscripts/commit.py new file mode 100644 index 000000000..a17b321ae --- /dev/null +++ b/scrum/data/hookscripts/commit.py @@ -0,0 +1,240 @@ +#!/usr/bin/python +from xml.dom.minidom import Document +import httplib,sys,os,subprocess +import ConfigParser + +##################################### +##### Subversion configurations ##### +REPOS = sys.argv[1] +REV = sys.argv[2] + +# if the repository and the version number of the repository not empty. +if REPOS and REV: + # The path of revision.properties + CONFIG_PATH = "/home/ofbiz/ofbiz/hot-deploy/scrum/config/revision.properties" + openfile = open(CONFIG_PATH) + openfile.readline() + revision = ConfigParser.ConfigParser() + revision.readfp(openfile) + REVISION_URL = revision.get("config", "revision.url") + HOSTNAME = revision.get("config", "host.name") + HOSTPORT = revision.get("config", "host.port") + OFBIZ_WEBSERVICE_URL = revision.get("config", "ofbiz.webservice.url") + SVN_USER = revision.get("config", "svn.user") + SVN_PASSWORD = revision.get("config", "svn.password") + + print "HOSTNAME == >>>" + HOSTNAME + print "HOSTPORT == >>>" + HOSTPORT + print "OFBIZ_WEBSERVICE_URL == >>>" + OFBIZ_WEBSERVICE_URL + print "SVN_USER == >>>" + SVN_USER + print "SVN_PASSWORD == >>>" + SVN_PASSWORD + + try: + REPOS_INPUT = REPOS[ 0 : REPOS.rfind("svn/")] + if len(REPOS_INPUT) > 15: + REPOSITORY_ROOT = REPOS[ REPOS.rfind("svn/") + 4 : len(REPOS)] + REPOS = REPOS + else: + REPOSITORY_ROOT = REPOS[ REPOS.rfind("svn/repositories/") + 17 : len(REPOS)] + REPOS = REVISION_URL + REPOSITORY_ROOT + + SVN_INFO_URL = REPOSITORY_ROOT + "&revision=" + REV + + print "REPOS == >>>" + REPOS + print "SVN_INFO_URL == >>>" + SVN_INFO_URL + ##### Web service configurations ##### + ##################################### + ###### Find Task and User ###### + if SVN_USER and SVN_PASSWORD: + l = subprocess.Popen('svn log -r %s %s --username %s --password %s \n\n' % (REV, REPOS, SVN_USER, SVN_PASSWORD), shell=True, stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.STDOUT) + l.stdin.write('no\n') + l.stdin.write('t\n') + else: + l = subprocess.Popen('svn log -r %s %s \n\n' % (REV, REPOS), shell=True, stdout=subprocess.PIPE, stdin=subprocess.PIPE, stderr=subprocess.STDOUT) + l.stdin.write('clear\n') + log = l.communicate()[0] + logListInput = log.split('\n'); + if len(logListInput) > 7: + log = logListInput[17] + else: + logList = log.split('|'); + log = logList[3] + ### check taskId ### + count = 0 + taskId = '' + for index in range(len(log)): + letter = log[index] + if letter.isdigit(): + count = count + 1 + else: + count = 0 + if count == 5: + taskId = log[(index - 4) : index + 1] + break + ### check hours ### + hours =''; + checkCond = False; + hourData = log.lower(); + hourMes = hourData[ hourData.rfind("hrs:") + 4 : hourData.rfind("hrs:") + 8] + countHrs = len(hourMes); + firstchar = hourMes[0]; + for hrsIndex in xrange(countHrs,0,-1): + if firstchar.isdigit(): + hrsLetter = hourMes[hrsIndex-1]; + if hrsLetter.isdigit(): + checkCond = True; + else: + checkCond = False; + if checkCond: + hours = hourMes[0 : (hrsIndex)] + break + else: + break + ### check Description ### + if len(logListInput) > 7: + userlog = logListInput[15] + userlogList = userlog.split('|'); + user = userlogList[1] + logMes = logListInput[17] + if len(logMes) > 255: + logMes = logMes[0:255] + revisionDescription = logMes + else: + user = logList[1].strip() + removeIndex = log.find('----------') + if removeIndex != -1: + log = log[0 : removeIndex - 1] + if len(log) > 255: + log = log[0:255] + revisionDescription = log[9 : len(log) - 1] + + print "user == >>>" + user + print "taskId == >>>" + taskId + print "hours == >>>" + hours + print "revisionDescription == >>>" + revisionDescription + ###### Create the minidom document ###### + doc = Document() + soapenv = doc.createElement("soapenv:Envelope") + doc.appendChild(soapenv) + soapenv.setAttribute("xmlns:soapenv", "http://schemas.xmlsoap.org/soap/envelope/") + soapenv.setAttribute("xmlns:ser", OFBIZ_WEBSERVICE_URL) + + header = doc.createElement("soapenv:Header") + soapenv.appendChild(header) + + body = doc.createElement("soapenv:Body") + soapenv.appendChild(body) + + updateScrumRevision = doc.createElement("ser:updateScrumRevision") + body.appendChild(updateScrumRevision) + + mapMap = doc.createElement("map-Map") + updateScrumRevision.appendChild(mapMap) + + mapEntry = doc.createElement("ser:map-Entry") + mapKey = doc.createElement("ser:map-Key") + stdString = doc.createElement("ser:std-String") + stdString.setAttribute("value", "revisionNumber") + mapKey.appendChild(stdString) + mapEntry.appendChild(mapKey) + mapValue = doc.createElement("ser:map-Value") + stdString = doc.createElement("ser:std-String") + stdString.setAttribute("value", REV) + mapValue.appendChild(stdString) + mapEntry.appendChild(mapValue) + mapMap.appendChild(mapEntry) + + mapEntry = doc.createElement("ser:map-Entry") + mapKey = doc.createElement("ser:map-Key") + stdString = doc.createElement("ser:std-String") + stdString.setAttribute("value", "revisionLink") + mapKey.appendChild(stdString) + mapEntry.appendChild(mapKey) + mapValue = doc.createElement("ser:map-Value") + stdString = doc.createElement("ser:std-String") + stdString.setAttribute("value", SVN_INFO_URL) + mapValue.appendChild(stdString) + mapEntry.appendChild(mapValue) + mapMap.appendChild(mapEntry) + + mapEntry = doc.createElement("ser:map-Entry") + mapKey = doc.createElement("ser:map-Key") + stdString = doc.createElement("ser:std-String") + stdString.setAttribute("value", "revisionDescription") + mapKey.appendChild(stdString) + mapEntry.appendChild(mapKey) + mapValue = doc.createElement("ser:map-Value") + stdString = doc.createElement("ser:std-String") + stdString.setAttribute("value", revisionDescription) + mapValue.appendChild(stdString) + mapEntry.appendChild(mapValue) + mapMap.appendChild(mapEntry) + + mapEntry = doc.createElement("ser:map-Entry") + mapKey = doc.createElement("ser:map-Key") + stdString = doc.createElement("ser:std-String") + stdString.setAttribute("value", "taskId") + mapKey.appendChild(stdString) + mapEntry.appendChild(mapKey) + mapValue = doc.createElement("ser:map-Value") + stdString = doc.createElement("ser:std-String") + stdString.setAttribute("value", taskId) + mapValue.appendChild(stdString) + mapEntry.appendChild(mapValue) + mapMap.appendChild(mapEntry) + + mapEntry = doc.createElement("ser:map-Entry") + mapKey = doc.createElement("ser:map-Key") + stdString = doc.createElement("ser:std-String") + stdString.setAttribute("value", "hours") + mapKey.appendChild(stdString) + mapEntry.appendChild(mapKey) + mapValue = doc.createElement("ser:map-Value") + stdString = doc.createElement("ser:std-String") + stdString.setAttribute("value", hours) + mapValue.appendChild(stdString) + mapEntry.appendChild(mapValue) + mapMap.appendChild(mapEntry) + + mapEntry = doc.createElement("ser:map-Entry") + mapKey = doc.createElement("ser:map-Key") + stdString = doc.createElement("ser:std-String") + stdString.setAttribute("value", "user") + mapKey.appendChild(stdString) + mapEntry.appendChild(mapKey) + mapValue = doc.createElement("ser:map-Value") + stdString = doc.createElement("ser:std-String") + stdString.setAttribute("value", user) + mapValue.appendChild(stdString) + mapEntry.appendChild(mapValue) + mapMap.appendChild(mapEntry) + + soapMessage = doc.toprettyxml(indent=" "); + + ####### Call Webservice ####### + # Send request + webservice = httplib.HTTPConnection(HOSTNAME, HOSTPORT, timeout=10) + webservice.putrequest("POST", OFBIZ_WEBSERVICE_URL) + webservice.putheader("Host", HOSTNAME) + webservice.putheader("User-Agent", "Python post") + webservice.putheader("Content-type", "text/xml; charset=\"UTF-8\"") + webservice.putheader("Content-length", "%d" % len(soapMessage)) + webservice.putheader("SOAPAction", "\"\"") + webservice.endheaders() + webservice.send(soapMessage) + + # Get response + response = webservice.getresponse() + #print "reason: ", response.reason + webservice.close() + except Exception: + print >>sys.stderr, "File: {0}".format(sys.argv[0]) + error_info = sys.exc_info()[1] + sys.stderr.write("Exception :%s" % error_info) + sys.exit(1) +else: + print >>sys.stderr, "File: {0}".format(sys.argv[0]) + sys.stderr.write("<<<: Error: The repository and the version number of subversion can not be null :>>\n") + sys.exit(1) + +sys.exit(0) diff --git a/scrum/data/hookscripts/post-commit b/scrum/data/hookscripts/post-commit new file mode 100644 index 000000000..120182253 --- /dev/null +++ b/scrum/data/hookscripts/post-commit @@ -0,0 +1,55 @@ +#!/bin/sh + +# POST-COMMIT HOOK +# +# The post-commit hook is invoked after a commit. Subversion runs +# this hook by invoking a program (script, executable, binary, etc.) +# named 'post-commit' (for which this file is a template) with the +# following ordered arguments: +# +# [1] REPOS-PATH (the path to this repository) +# [2] REV (the number of the revision just committed) +# +# The default working directory for the invocation is undefined, so +# the program should set one explicitly if it cares. +# +# Because the commit has already completed and cannot be undone, +# the exit code of the hook program is ignored. The hook program +# can use the 'svnlook' utility to help it examine the +# newly-committed tree. +# +# On a Unix system, the normal procedure is to have 'post-commit' +# invoke other programs to do the real work, though it may do the +# work itself too. +# +# Note that 'post-commit' must be executable by the user(s) who will +# invoke it (typically the user httpd runs as), and that user must +# have filesystem-level permission to access the repository. +# +# On a Windows system, you should name the hook program +# 'post-commit.bat' or 'post-commit.exe', +# but the basic idea is the same. +# +# The hook program typically does not inherit the environment of +# its parent process. For example, a common problem is for the +# PATH environment variable to not be set to its usual value, so +# that subprograms fail to launch unless invoked via absolute path. +# If you're having unexpected problems with a hook program, the +# culprit may be unusual (or missing) environment variables. +# +# Here is an example hook script, for a Unix /bin/sh interpreter. +# For more examples and pre-written hooks, see those in +# the Subversion repository at +# http://svn.collab.net/repos/svn/trunk/tools/hook-scripts/ and +# http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/ + + +REPOS="$1" +REV="$2" + +# Call webservice to store svn revision. +python /home/svn/commit.py "$REPOS" "$REV" + +# the location of svn-mailer may be customized, +# use the real location. +/usr/bin/svn-mailer --commit --config /home/svn/svn-mailer.cfg --repository "${REPOS}" --revision "${REV}" diff --git a/scrum/data/hookscripts/pre-commit b/scrum/data/hookscripts/pre-commit new file mode 100644 index 000000000..f8d598457 --- /dev/null +++ b/scrum/data/hookscripts/pre-commit @@ -0,0 +1,88 @@ +#!/bin/sh + +# PRE-COMMIT HOOK +# +# The pre-commit hook is invoked before a Subversion txn is +# committed. Subversion runs this hook by invoking a program +# (script, executable, binary, etc.) named 'pre-commit' (for which +# this file is a template), with the following ordered arguments: +# +# [1] REPOS-PATH (the path to this repository) +# [2] TXN-NAME (the name of the txn about to be committed) +# +# [STDIN] LOCK-TOKENS ** the lock tokens are passed via STDIN. +# +# If STDIN contains the line "LOCK-TOKENS:\n" (the "\n" denotes a +# single newline), the lines following it are the lock tokens for +# this commit. The end of the list is marked by a line containing +# only a newline character. +# +# Each lock token line consists of a URI-escaped path, followed +# by the separator character '|', followed by the lock token string, +# followed by a newline. +# +# The default working directory for the invocation is undefined, so +# the program should set one explicitly if it cares. +# +# If the hook program exits with success, the txn is committed; but +# if it exits with failure (non-zero), the txn is aborted, no commit +# takes place, and STDERR is returned to the client. The hook +# program can use the 'svnlook' utility to help it examine the txn. +# +# On a Unix system, the normal procedure is to have 'pre-commit' +# invoke other programs to do the real work, though it may do the +# work itself too. +# +# *** NOTE: THE HOOK PROGRAM MUST NOT MODIFY THE TXN, EXCEPT *** +# *** FOR REVISION PROPERTIES (like svn:log or svn:author). *** +# +# This is why we recommend using the read-only 'svnlook' utility. +# In the future, Subversion may enforce the rule that pre-commit +# hooks should not modify the versioned data in txns, or else come +# up with a mechanism to make it safe to do so (by informing the +# committing client of the changes). However, right now neither +# mechanism is implemented, so hook writers just have to be careful. +# +# Note that 'pre-commit' must be executable by the user(s) who will +# invoke it (typically the user httpd runs as), and that user must +# have filesystem-level permission to access the repository. +# +# On a Windows system, you should name the hook program +# 'pre-commit.bat' or 'pre-commit.exe', +# but the basic idea is the same. +# +# The hook program typically does not inherit the environment of +# its parent process. For example, a common problem is for the +# PATH environment variable to not be set to its usual value, so +# that subprograms fail to launch unless invoked via absolute path. +# If you're having unexpected problems with a hook program, the +# culprit may be unusual (or missing) environment variables. +# +# Here is an example hook script, for a Unix /bin/sh interpreter. +# For more examples and pre-written hooks, see those in +# /usr/share/subversion/hook-scripts, and in the repository at +# http://svn.apache.org/repos/asf/subversion/trunk/tools/hook-scripts/ and +# http://svn.apache.org/repos/asf/subversion/trunk/contrib/hook-scripts/ + + +REPOS="$1" +TXN="$2" + +SVNLOOK=/usr/bin/svnlook +# Make sure that the log message contains some text. +$SVNLOOK log -t "$TXN" "$REPOS" | \ + grep "[a-zA-Z0-9]" > /dev/null || { echo "Warning : can not empty log message ...." >& 2; exit 1; } + +# Make sure that the log message contains the taskId. +$SVNLOOK log -t "$TXN" "$REPOS" | \ + grep "[0-9][0-9][0-9][0-9][0-9]" > /dev/null || { echo "Warning: the taskId should contain in the commit message and the format should be 'xxxxx' ...">& 2; exit 1; } + +# Make sure that the log message contains the used hours. +$SVNLOOK log -t "$TXN" "$REPOS" | \ + grep "[HRShrs]:[0-9]" > /dev/null || { echo "Warning: the used hours should contain in the commit message and the format should be 'HRS:x' or 'hrs:x' ..." >& 2; exit 1; } + +# Exit on all errors. +set -e + +# All checks passed, so allow the commit. +exit 0 diff --git a/scrum/data/scrumDemoData.xml b/scrum/data/scrumDemoData.xml new file mode 100644 index 000000000..4471a3a13 --- /dev/null +++ b/scrum/data/scrumDemoData.xml @@ -0,0 +1,257 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scrum/data/scrumHelpData.xml b/scrum/data/scrumHelpData.xml new file mode 100644 index 000000000..a951e7274 --- /dev/null +++ b/scrum/data/scrumHelpData.xml @@ -0,0 +1,193 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/scrum/data/scrumSecurityData.xml b/scrum/data/scrumSecurityData.xml new file mode 100644 index 000000000..aab6c8343 --- /dev/null +++ b/scrum/data/scrumSecurityData.xml @@ -0,0 +1,227 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scrum/data/scrumTypeData.xml b/scrum/data/scrumTypeData.xml new file mode 100644 index 000000000..86da734ff --- /dev/null +++ b/scrum/data/scrumTypeData.xml @@ -0,0 +1,148 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scrum/documents/Scrum.xml b/scrum/documents/Scrum.xml new file mode 100644 index 000000000..af0f21f9c --- /dev/null +++ b/scrum/documents/Scrum.xml @@ -0,0 +1,27 @@ + + + + The Scrum Component. + + diff --git a/scrum/entitydef/entitymodel.xml b/scrum/entitydef/entitymodel.xml new file mode 100644 index 000000000..bf1678a29 --- /dev/null +++ b/scrum/entitydef/entitymodel.xml @@ -0,0 +1,773 @@ + + + + + + Entity of scrum Component + None + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scrum/ofbiz-component.xml b/scrum/ofbiz-component.xml new file mode 100644 index 000000000..245634839 --- /dev/null +++ b/scrum/ofbiz-component.xml @@ -0,0 +1,50 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scrum/ofbizScrumDataModel.odp b/scrum/ofbizScrumDataModel.odp new file mode 100755 index 000000000..a56de7f8f Binary files /dev/null and b/scrum/ofbizScrumDataModel.odp differ diff --git a/scrum/script/org/ofbiz/scrum/ScrumEvents.xml b/scrum/script/org/ofbiz/scrum/ScrumEvents.xml new file mode 100644 index 000000000..be9cdeba4 --- /dev/null +++ b/scrum/script/org/ofbiz/scrum/ScrumEvents.xml @@ -0,0 +1,4495 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Successfully created. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + The Default Task record successfully updated. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Successfully + + + + + + + + + + Insert the How To Test Task message successfully. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + The Default Task record successfully deleted. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Successfully created party relationship. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Successfully created. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scrum/script/org/ofbiz/scrum/ScrumPermissionServices.xml b/scrum/script/org/ofbiz/scrum/ScrumPermissionServices.xml new file mode 100644 index 000000000..fffbd8677 --- /dev/null +++ b/scrum/script/org/ofbiz/scrum/ScrumPermissionServices.xml @@ -0,0 +1,590 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scrum/script/org/ofbiz/scrum/ScrumServices.xml b/scrum/script/org/ofbiz/scrum/ScrumServices.xml new file mode 100644 index 000000000..d117a524c --- /dev/null +++ b/scrum/script/org/ofbiz/scrum/ScrumServices.xml @@ -0,0 +1,2950 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scrum/script/org/ofbiz/scrum/test/DailyMeetingMinuteTests.xml b/scrum/script/org/ofbiz/scrum/test/DailyMeetingMinuteTests.xml new file mode 100644 index 000000000..46deb6fe2 --- /dev/null +++ b/scrum/script/org/ofbiz/scrum/test/DailyMeetingMinuteTests.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/scrum/script/org/ofbiz/scrum/test/MyWorkTests.xml b/scrum/script/org/ofbiz/scrum/test/MyWorkTests.xml new file mode 100644 index 000000000..9cd9eb2d7 --- /dev/null +++ b/scrum/script/org/ofbiz/scrum/test/MyWorkTests.xml @@ -0,0 +1,95 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/scrum/script/org/ofbiz/scrum/test/ProductBacklogTest.xml b/scrum/script/org/ofbiz/scrum/test/ProductBacklogTest.xml new file mode 100644 index 000000000..b31bc038b --- /dev/null +++ b/scrum/script/org/ofbiz/scrum/test/ProductBacklogTest.xml @@ -0,0 +1,352 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/scrum/script/org/ofbiz/scrum/test/ProductTest.xml b/scrum/script/org/ofbiz/scrum/test/ProductTest.xml new file mode 100644 index 000000000..d8481f357 --- /dev/null +++ b/scrum/script/org/ofbiz/scrum/test/ProductTest.xml @@ -0,0 +1,218 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scrum/script/org/ofbiz/scrum/test/ProjectTests.xml b/scrum/script/org/ofbiz/scrum/test/ProjectTests.xml new file mode 100644 index 000000000..f49d44403 --- /dev/null +++ b/scrum/script/org/ofbiz/scrum/test/ProjectTests.xml @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/scrum/script/org/ofbiz/scrum/test/QATests.xml b/scrum/script/org/ofbiz/scrum/test/QATests.xml new file mode 100644 index 000000000..86a933b31 --- /dev/null +++ b/scrum/script/org/ofbiz/scrum/test/QATests.xml @@ -0,0 +1,42 @@ + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/scrum/script/org/ofbiz/scrum/test/ScrumProjectTests.xml b/scrum/script/org/ofbiz/scrum/test/ScrumProjectTests.xml new file mode 100644 index 000000000..2f1a3efc1 --- /dev/null +++ b/scrum/script/org/ofbiz/scrum/test/ScrumProjectTests.xml @@ -0,0 +1,164 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/scrum/script/org/ofbiz/scrum/test/ScrumTests.xml b/scrum/script/org/ofbiz/scrum/test/ScrumTests.xml new file mode 100644 index 000000000..950263263 --- /dev/null +++ b/scrum/script/org/ofbiz/scrum/test/ScrumTests.xml @@ -0,0 +1,31 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/scrum/script/org/ofbiz/scrum/test/SprintBacklogTests.xml b/scrum/script/org/ofbiz/scrum/test/SprintBacklogTests.xml new file mode 100644 index 000000000..723d12ae3 --- /dev/null +++ b/scrum/script/org/ofbiz/scrum/test/SprintBacklogTests.xml @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/scrum/script/org/ofbiz/scrum/test/SprintTests.xml b/scrum/script/org/ofbiz/scrum/test/SprintTests.xml new file mode 100644 index 000000000..7bdf7022a --- /dev/null +++ b/scrum/script/org/ofbiz/scrum/test/SprintTests.xml @@ -0,0 +1,162 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/scrum/script/org/ofbiz/scrum/test/TaskTests.xml b/scrum/script/org/ofbiz/scrum/test/TaskTests.xml new file mode 100644 index 000000000..64cf686a4 --- /dev/null +++ b/scrum/script/org/ofbiz/scrum/test/TaskTests.xml @@ -0,0 +1,78 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scrum/script/org/ofbiz/scrum/test/TimesheetTests.xml b/scrum/script/org/ofbiz/scrum/test/TimesheetTests.xml new file mode 100644 index 000000000..d916e6e40 --- /dev/null +++ b/scrum/script/org/ofbiz/scrum/test/TimesheetTests.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/scrum/servicedef/permissionServices.xml b/scrum/servicedef/permissionServices.xml new file mode 100644 index 000000000..931db68b5 --- /dev/null +++ b/scrum/servicedef/permissionServices.xml @@ -0,0 +1,63 @@ + + + scrum Services + + 1.0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Scrum Basic Permission Checking Logic + + + + + + + + + + + \ No newline at end of file diff --git a/scrum/servicedef/secas.xml b/scrum/servicedef/secas.xml new file mode 100644 index 000000000..69023ade3 --- /dev/null +++ b/scrum/servicedef/secas.xml @@ -0,0 +1,77 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/scrum/servicedef/services.xml b/scrum/servicedef/services.xml new file mode 100644 index 000000000..0b882c199 --- /dev/null +++ b/scrum/servicedef/services.xml @@ -0,0 +1,303 @@ + + + scrum Services + + 1.0 + + + + + + + + + + + + + + + + + + + + + + + + + + + Get the projectId and Name when a sprint backlog or task is provided. + + + + + + + + + + + + + + Update workeffort by workeffortId and timesheetId + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Update a WorkEffortPartyAssignment Entity, including set enddate and create new + + + + + + + + + + + + + + + + + + Add Product Time to a new Invoice + + + + + + + + + + + + + + + Remove invoiceId in TimeEntry + + + + + Get Scrum Plan Hours from Backlog or Task : TimeEntry--> Task--> Backlog + + + + + + + + + + + Get project information and related backlog and task info. + + + + + + + + Get project information and related backlog and task info. + + + + + + + Get task info and others related to task + + + + + + + + Get party leave hours for date + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Updates the Timesheet status back to in process to be able to correct errors + + + + + + + + Update Scrum Revision Change + + + + + + + + + view Scrum Revision + + + + + + + Retrieve Missing Scrum Revision + + + + + Remove Duplicate Scrum Revision + + + + + + + + check when a comunication event is created if the subject contains the PD# string, if so + try to find the customer request and link it to the communication event.. + + + + + + + + + + + + + + + + + + + The upgradeScrumR1547 service is using for convert the old data with the productId problem of + workeffort entity in scrum by copy the old data to existing entity name "WorkEffortGoodStandard" + + diff --git a/scrum/src/org/ofbiz/scrum/ScrumEvents.java b/scrum/src/org/ofbiz/scrum/ScrumEvents.java new file mode 100644 index 000000000..5d6e5a96e --- /dev/null +++ b/scrum/src/org/ofbiz/scrum/ScrumEvents.java @@ -0,0 +1,127 @@ +/******************************************************************************* + * 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. + *******************************************************************************/ +package org.ofbiz.scrum; + +import java.io.IOException; +import java.sql.Timestamp; +import java.util.List; +import java.util.Map; + +import javax.servlet.ServletException; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.servlet.http.HttpSession; + +import javolution.util.FastList; +import javolution.util.FastMap; + +import org.ofbiz.base.util.Debug; +import org.ofbiz.base.util.UtilDateTime; +import org.ofbiz.base.util.UtilHttp; +import org.ofbiz.base.util.UtilMisc; +import org.ofbiz.base.util.UtilProperties; +import org.ofbiz.base.util.UtilValidate; +import org.ofbiz.entity.Delegator; +import org.ofbiz.entity.GenericEntityException; +import org.ofbiz.entity.GenericValue; +import org.ofbiz.entity.condition.EntityCondition; +import org.ofbiz.entity.condition.EntityConditionList; +import org.ofbiz.entity.condition.EntityExpr; +import org.ofbiz.entity.condition.EntityOperator; + +/** + * ScrumEvents - Check The Warning Message. + */ +public class ScrumEvents { + + public static final String module = ScrumEvents.class.getName(); + + public static String timeSheetChecker(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { + HttpSession session = request.getSession(); + Delegator delegator = (Delegator) session.getAttribute("delegator"); + GenericValue userLogin = (GenericValue) session.getAttribute("userLogin"); + List> noTimeEntryList = FastList.newInstance(); + String partyId = userLogin.getString("partyId"); + Timestamp now = UtilDateTime.nowTimestamp(); + Timestamp weekStart = UtilDateTime.getWeekStart(now); + + if (UtilValidate.isEmpty(delegator)) { + delegator = (Delegator) request.getAttribute("delegator"); + } + + try { + // should be scrum team or scrum master. + EntityConditionList exprOrs = EntityCondition.makeCondition(UtilMisc.toList( + EntityCondition.makeCondition("roleTypeId", EntityOperator.EQUALS, "SCRUM_TEAM"), + EntityCondition.makeCondition("roleTypeId", EntityOperator.EQUALS, "SCRUM_MASTER")), EntityOperator.OR); + EntityConditionList exprAnds = EntityCondition.makeCondition(UtilMisc.toList( + exprOrs, + EntityCondition.makeCondition("partyId", EntityOperator.EQUALS, partyId)), + EntityOperator.AND); + List partyRoleList = delegator.findList("PartyRole", exprAnds, null, null, null, false); + if (UtilValidate.isNotEmpty(partyRoleList)) { + List timesheetList = delegator.findByAndCache("Timesheet", UtilMisc.toMap("partyId" , partyId, "statusId", "TIMESHEET_IN_PROCESS")); + if (UtilValidate.isNotEmpty(timesheetList)) { + for (GenericValue timesheetMap : timesheetList) { + String timesheetId = timesheetMap.getString("timesheetId"); + Timestamp timesheetDate = timesheetMap.getTimestamp("fromDate"); + //check monday - friday + for (int i = 0; i < 5; i++) { + Timestamp realTimeDate = UtilDateTime.addDaysToTimestamp(timesheetDate, i); + Timestamp nowStartDate = UtilDateTime.getDayStart(now); + //compare week and compare date + if ((timesheetDate.compareTo(weekStart) <= 0) && (realTimeDate.compareTo(nowStartDate) < 0)) { + //check time entry + List timeEntryList = timesheetMap.getRelatedByAnd("TimeEntry" + , UtilMisc.toMap("partyId", partyId, "timesheetId",timesheetId, "fromDate",realTimeDate)); + //check EmplLeave + List emplLeaveList = delegator.findByAndCache("EmplLeave" + , UtilMisc.toMap("partyId", partyId, "fromDate",realTimeDate)); + if (UtilValidate.isEmpty(timeEntryList) && UtilValidate.isEmpty(emplLeaveList)) { + Map noEntryMap = FastMap.newInstance(); + noEntryMap.put("timesheetId", timesheetId); + noTimeEntryList.add(noEntryMap); + break; + } + } + } + } + } + } + } catch (GenericEntityException EntEx) { + EntEx.printStackTrace(); + Debug.log(EntEx.getMessage(), module); + } + if (UtilValidate.isNotEmpty(noTimeEntryList)) { + String warningData = ""; + int size = noTimeEntryList.size(); + for (Map dataMap : noTimeEntryList) { + if (--size == 0) { + warningData += dataMap.get("timesheetId"); + } else { + warningData += dataMap.get("timesheetId") + ", "; + } + } + Debug.logInfo("The following time sheet no time entry: [" + warningData + "]", module); + request.setAttribute("_ERROR_MESSAGE_", UtilProperties.getMessage("scrumUiLabels", "ScrumTimesheetWarningMessage" + ,UtilMisc.toMap("warningMessage", warningData), UtilHttp.getLocale(request))); + } + return "success"; + } +} diff --git a/scrum/src/org/ofbiz/scrum/ScrumServices.java b/scrum/src/org/ofbiz/scrum/ScrumServices.java new file mode 100644 index 000000000..574f74508 --- /dev/null +++ b/scrum/src/org/ofbiz/scrum/ScrumServices.java @@ -0,0 +1,292 @@ +package org.ofbiz.scrum; + +import java.io.BufferedReader; +import java.io.IOException; +import java.io.InputStreamReader; +import java.sql.Timestamp; +import com.ibm.icu.util.Calendar; +import java.util.Collection; +import java.util.Date; +import java.util.List; +import java.util.Locale; +import java.util.Map; +import java.util.Set; + +import javolution.util.FastList; +import javolution.util.FastMap; +import javolution.util.FastSet; + +import org.ofbiz.base.util.Debug; +import org.ofbiz.base.util.UtilMisc; +import org.ofbiz.base.util.UtilProperties; +import org.ofbiz.base.util.UtilValidate; +import org.ofbiz.entity.Delegator; +import org.ofbiz.entity.GenericEntityException; +import org.ofbiz.entity.GenericValue; +import org.ofbiz.entity.condition.EntityCondition; +import org.ofbiz.entity.condition.EntityConditionList; +import org.ofbiz.entity.condition.EntityExpr; +import org.ofbiz.entity.condition.EntityOperator; +import org.ofbiz.entity.util.EntityUtil; +import org.ofbiz.service.DispatchContext; +import org.ofbiz.service.GenericServiceException; +import org.ofbiz.service.LocalDispatcher; +import org.ofbiz.service.ServiceUtil; +/** + * Scrum Services + */ +public class ScrumServices { + + public static final String module = ScrumServices.class.getName(); + + public static Map linkToProduct(DispatchContext ctx, Map context) { + Delegator delegator = ctx.getDelegator(); + LocalDispatcher dispatcher = ctx.getDispatcher(); + String communicationEventId = (String) context.get("communicationEventId"); + // Debug.logInfo("==== Processing Commevent: " + communicationEventId, module); + + if (UtilValidate.isNotEmpty(communicationEventId)) { + try { + GenericValue communicationEvent = delegator.findByPrimaryKey("CommunicationEvent", UtilMisc.toMap("communicationEventId", communicationEventId)); + if (UtilValidate.isNotEmpty(communicationEvent)) { + String subject = communicationEvent.getString("subject"); + if (UtilValidate.isNotEmpty(subject)) { + int pdLocation = subject.indexOf("PD#"); + if (pdLocation > 0) { + // scan until the first non digit character + int nonDigitLocation = pdLocation + 3; + while (nonDigitLocation < subject.length() && Character.isDigit(subject.charAt(nonDigitLocation))) { + nonDigitLocation++; + } + String productId = subject.substring(pdLocation + 3, nonDigitLocation); + // Debug.logInfo("=======================Product id found in subject: >>" + custRequestId + "<<", module); + GenericValue product = delegator.findByPrimaryKey("Product", UtilMisc.toMap("productId", productId)); + if (UtilValidate.isNotEmpty(product)) { + GenericValue communicationEventProductMap = delegator.findByPrimaryKey("CommunicationEventProduct", UtilMisc.toMap("productId", productId, "communicationEventId", communicationEventId)); + if (UtilValidate.isEmpty(communicationEventProductMap)) { + GenericValue communicationEventProduct = delegator.makeValue("CommunicationEventProduct", UtilMisc.toMap("productId", productId, "communicationEventId", communicationEventId)); + communicationEventProduct.create(); + } + try { + List productRoleList = delegator.findByAnd("ProductRole", UtilMisc.toMap("productId",productId, "partyId", communicationEvent.getString("partyIdFrom"), "roleTypeId","PRODUCT_OWNER")); + GenericValue productRoleMap = EntityUtil.getFirst(productRoleList); + GenericValue userLogin = (GenericValue) context.get("userLogin"); + // also close the incoming communication event + if (UtilValidate.isNotEmpty(productRoleMap)) { + dispatcher.runSync("setCommunicationEventStatus", UtilMisc.toMap("communicationEventId", communicationEvent.getString("communicationEventId"), "statusId", "COM_COMPLETE", "userLogin", userLogin)); + } + } catch (GenericServiceException e1) { + Debug.logError(e1, "Error calling updating commevent status", module); + return ServiceUtil.returnError("Error calling updating commevent status:" + e1.toString()); + } + } else { + Debug.logInfo("Product id " + productId + " found in subject but not in database", module); + } + } + } + } + + } catch (GenericEntityException e) { + return ServiceUtil.returnError("find by primary key error:" + e.toString()); + } + + Map result = ServiceUtil.returnSuccess(); + return result; + } else { + Map 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 informationMap.productId?has_content>
of the product: ${informationMap.internalName?if_exists} [${informationMap.productId?if_exists}] + <#if removedFromSprint = true> has been removed from sprint. <#else> has been received. +
+
+ <#if custRequest.fromPartyId == partyIdTo> + The complete information of this backlog/request can be found here..... +

+ + 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 informationMap.productId?has_content>of the product ${informationMap.internalName?if_exists} [${informationMap.productId?if_exists}] 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..... +

+ + 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 informationMap.productId?has_content>of the product ${informationMap.internalName?if_exists} [${informationMap.productId?if_exists}] has been completed. +
+
+ <#if custRequest.fromPartyId == partyIdTo> + The complete information about this sprint can be found here..... +

+ + 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 informationMap.productId?has_content>The related product: ${informationMap.internalName?if_exists} [${informationMap.productId?if_exists}]. +
+
+ <#if custRequest.fromPartyId == partyIdTo> + The complete information about this sprint can be found here..... +

+ + 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()/> + +
+ + + + 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 IDDESCRIPTION
+ 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> +
+

Subversion Information for repository : ${result.repository?if_exists}, revision# ${result.revision?if_exists}

+
+
+

Log message

+
${result.logMessage}
+
+
+ <#assign oldrevision = result.revision?number - 1 > +

The differences between revisions: ${oldrevision?if_exists} and ${result.revision?if_exists}

+
${result.diffMessage}
+
+ \ 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 + + <Caption> + <Value></Value> + <Font> + <Alignment/> + </Font> + </Caption> + <Background xsi:type="attribute:ColorDefinition"> + <Transparency>0</Transparency> + <Red>255</Red> + <Green>255</Green> + <Blue>255</Blue> + </Background> + <Outline> + <Style>Solid</Style> + <Thickness>1</Thickness> + <Color> + <Transparency>255</Transparency> + <Red>0</Red> + <Green>0</Green> + <Blue>0</Blue> + </Color> + <Visible>false</Visible> + </Outline> + <Insets> + <Top>0.0</Top> + <Left>2.0</Left> + <Bottom>0.0</Bottom> + <Right>3.0</Right> + </Insets> + <Visible>false</Visible> + + 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 + + <Caption> + <Value></Value> + <Font> + <Size>16.0</Size> + <Bold>true</Bold> + <Alignment/> + </Font> + </Caption> + <Background xsi:type="attribute:ColorDefinition"> + <Transparency>0</Transparency> + <Red>255</Red> + <Green>255</Green> + <Blue>255</Blue> + </Background> + <Outline> + <Style>Solid</Style> + <Thickness>1</Thickness> + <Color> + <Transparency>255</Transparency> + <Red>0</Red> + <Green>0</Green> + <Blue>0</Blue> + </Color> + </Outline> + <Insets> + <Top>0.0</Top> + <Left>2.0</Left> + <Bottom>0.0</Bottom> + <Right>3.0</Right> + </Insets> + <Visible>true</Visible> + + 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 + + <Caption> + <Value></Value> + <Font> + <Alignment/> + </Font> + </Caption> + <Background xsi:type="attribute:ColorDefinition"> + <Transparency>0</Transparency> + <Red>255</Red> + <Green>255</Green> + <Blue>255</Blue> + </Background> + <Outline> + <Style>Solid</Style> + <Thickness>1</Thickness> + <Color> + <Transparency>255</Transparency> + <Red>0</Red> + <Green>0</Green> + <Blue>0</Blue> + </Color> + <Visible>false</Visible> + </Outline> + <Insets> + <Top>0.0</Top> + <Left>2.0</Left> + <Bottom>0.0</Bottom> + <Right>3.0</Right> + </Insets> + <Visible>false</Visible> + + 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 + + <Caption> + <Value></Value> + <Font> + <Size>16.0</Size> + <Bold>true</Bold> + <Alignment/> + </Font> + </Caption> + <Background xsi:type="attribute:ColorDefinition"> + <Transparency>0</Transparency> + <Red>255</Red> + <Green>255</Green> + <Blue>255</Blue> + </Background> + <Outline> + <Style>Solid</Style> + <Thickness>1</Thickness> + <Color> + <Transparency>255</Transparency> + <Red>0</Red> + <Green>0</Green> + <Blue>0</Blue> + </Color> + </Outline> + <Insets> + <Top>0.0</Top> + <Left>2.0</Left> + <Bottom>0.0</Bottom> + <Right>3.0</Right> + </Insets> + <Visible>true</Visible> + + 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 + + <Caption> + <Value></Value> + <Font> + <Alignment/> + </Font> + </Caption> + <Background xsi:type="attribute:ColorDefinition"> + <Transparency>0</Transparency> + <Red>255</Red> + <Green>255</Green> + <Blue>255</Blue> + </Background> + <Outline> + <Style>Solid</Style> + <Thickness>1</Thickness> + <Color> + <Transparency>255</Transparency> + <Red>0</Red> + <Green>0</Green> + <Blue>0</Blue> + </Color> + <Visible>false</Visible> + </Outline> + <Insets> + <Top>0.0</Top> + <Left>2.0</Left> + <Bottom>0.0</Bottom> + <Right>3.0</Right> + </Insets> + <Visible>false</Visible> + + 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 + + <Caption> + <Value></Value> + <Font> + <Size>16.0</Size> + <Bold>true</Bold> + <Alignment/> + </Font> + </Caption> + <Background xsi:type="attribute:ColorDefinition"> + <Transparency>0</Transparency> + <Red>255</Red> + <Green>255</Green> + <Blue>255</Blue> + </Background> + <Outline> + <Style>Solid</Style> + <Thickness>1</Thickness> + <Color> + <Transparency>255</Transparency> + <Red>0</Red> + <Green>0</Green> + <Blue>0</Blue> + </Color> + </Outline> + <Insets> + <Top>0.0</Top> + <Left>2.0</Left> + <Bottom>0.0</Bottom> + <Right>3.0</Right> + </Insets> + <Visible>true</Visible> + + 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 + + <Caption> + <Value></Value> + <Font> + <Alignment/> + </Font> + </Caption> + <Background xsi:type="attribute:ColorDefinition"> + <Transparency>0</Transparency> + <Red>255</Red> + <Green>255</Green> + <Blue>255</Blue> + </Background> + <Outline> + <Style>Solid</Style> + <Thickness>1</Thickness> + <Color> + <Transparency>255</Transparency> + <Red>0</Red> + <Green>0</Green> + <Blue>0</Blue> + </Color> + <Visible>false</Visible> + </Outline> + <Insets> + <Top>0.0</Top> + <Left>2.0</Left> + <Bottom>0.0</Bottom> + <Right>3.0</Right> + </Insets> + <Visible>false</Visible> + + 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 + + <Caption> + <Value>Sprint Day</Value> + <Font> + <Size>9.0</Size> + <Bold>true</Bold> + <Alignment> + <horizontalAlignment>Center</horizontalAlignment> + <verticalAlignment>Center</verticalAlignment> + </Alignment> + </Font> + </Caption> + <Background xsi:type="attribute:ColorDefinition"> + <Transparency>0</Transparency> + <Red>255</Red> + <Green>255</Green> + <Blue>255</Blue> + </Background> + <Outline> + <Style>Solid</Style> + <Thickness>1</Thickness> + <Color> + <Transparency>255</Transparency> + <Red>0</Red> + <Green>0</Green> + <Blue>0</Blue> + </Color> + </Outline> + <Insets> + <Top>0.0</Top> + <Left>2.0</Left> + <Bottom>0.0</Bottom> + <Right>3.0</Right> + </Insets> + <Visible>true</Visible> + + Below + + Linear + + <Caption> + <Value>Man Hours</Value> + <Font> + <Size>9.0</Size> + <Bold>true</Bold> + <Alignment> + <horizontalAlignment>Center</horizontalAlignment> + <verticalAlignment>Center</verticalAlignment> + </Alignment> + <Rotation>90.0</Rotation> + </Font> + </Caption> + <Background xsi:type="attribute:ColorDefinition"> + <Transparency>0</Transparency> + <Red>255</Red> + <Green>255</Green> + <Blue>255</Blue> + </Background> + <Outline> + <Style>Solid</Style> + <Thickness>1</Thickness> + <Color> + <Transparency>255</Transparency> + <Red>0</Red> + <Green>0</Green> + <Blue>0</Blue> + </Color> + <Visible>false</Visible> + </Outline> + <Insets> + <Top>0.0</Top> + <Left>10.0</Left> + <Bottom>0.0</Bottom> + <Right>10.0</Right> + </Insets> + <Visible>true</Visible> + + 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 + + <Caption> + <Value></Value> + <Font> + <Alignment/> + </Font> + </Caption> + <Background xsi:type="attribute:ColorDefinition"> + <Transparency>0</Transparency> + <Red>255</Red> + <Green>255</Green> + <Blue>255</Blue> + </Background> + <Outline> + <Style>Solid</Style> + <Thickness>1</Thickness> + <Color> + <Transparency>255</Transparency> + <Red>0</Red> + <Green>0</Green> + <Blue>0</Blue> + </Color> + <Visible>false</Visible> + </Outline> + <Insets> + <Top>0.0</Top> + <Left>2.0</Left> + <Bottom>0.0</Bottom> + <Right>3.0</Right> + </Insets> + <Visible>false</Visible> + + 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 + + <Caption> + <Value>X-Axis Title</Value> + <Font> + <Size>14.0</Size> + <Bold>true</Bold> + <Alignment> + <horizontalAlignment>Center</horizontalAlignment> + <verticalAlignment>Center</verticalAlignment> + </Alignment> + </Font> + </Caption> + <Background xsi:type="attribute:ColorDefinition"> + <Transparency>0</Transparency> + <Red>255</Red> + <Green>255</Green> + <Blue>255</Blue> + </Background> + <Outline> + <Style>Solid</Style> + <Thickness>1</Thickness> + <Color> + <Transparency>255</Transparency> + <Red>0</Red> + <Green>0</Green> + <Blue>0</Blue> + </Color> + </Outline> + <Insets> + <Top>0.0</Top> + <Left>2.0</Left> + <Bottom>0.0</Bottom> + <Right>3.0</Right> + </Insets> + <Visible>false</Visible> + + Below + + Linear + + <Caption> + <Value>Y-Axis Title</Value> + <Font> + <Size>14.0</Size> + <Bold>true</Bold> + <Alignment> + <horizontalAlignment>Center</horizontalAlignment> + <verticalAlignment>Center</verticalAlignment> + </Alignment> + <Rotation>90.0</Rotation> + </Font> + </Caption> + <Background xsi:type="attribute:ColorDefinition"> + <Transparency>0</Transparency> + <Red>255</Red> + <Green>255</Green> + <Blue>255</Blue> + </Background> + <Outline> + <Style>Solid</Style> + <Thickness>1</Thickness> + <Color> + <Transparency>255</Transparency> + <Red>0</Red> + <Green>0</Green> + <Blue>0</Blue> + </Color> + </Outline> + <Insets> + <Top>0.0</Top> + <Left>2.0</Left> + <Bottom>0.0</Bottom> + <Right>3.0</Right> + </Insets> + <Visible>false</Visible> + + 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 + + <Caption> + <Value></Value> + <Font> + <Alignment/> + </Font> + </Caption> + <Background xsi:type="attribute:ColorDefinition"> + <Transparency>0</Transparency> + <Red>255</Red> + <Green>255</Green> + <Blue>255</Blue> + </Background> + <Outline> + <Style>Solid</Style> + <Thickness>1</Thickness> + <Color> + <Transparency>255</Transparency> + <Red>0</Red> + <Green>0</Green> + <Blue>0</Blue> + </Color> + <Visible>false</Visible> + </Outline> + <Insets> + <Top>0.0</Top> + <Left>2.0</Left> + <Bottom>0.0</Bottom> + <Right>3.0</Right> + </Insets> + <Visible>false</Visible> + + 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 + + <Caption> + <Value></Value> + <Font> + <Size>16.0</Size> + <Bold>true</Bold> + <Alignment/> + </Font> + </Caption> + <Background xsi:type="attribute:ColorDefinition"> + <Transparency>0</Transparency> + <Red>255</Red> + <Green>255</Green> + <Blue>255</Blue> + </Background> + <Outline> + <Style>Solid</Style> + <Thickness>1</Thickness> + <Color> + <Transparency>255</Transparency> + <Red>0</Red> + <Green>0</Green> + <Blue>0</Blue> + </Color> + </Outline> + <Insets> + <Top>0.0</Top> + <Left>2.0</Left> + <Bottom>0.0</Bottom> + <Right>3.0</Right> + </Insets> + <Visible>true</Visible> + + 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 + + <Caption> + <Value></Value> + <Font> + <Alignment/> + </Font> + </Caption> + <Background xsi:type="attribute:ColorDefinition"> + <Transparency>0</Transparency> + <Red>255</Red> + <Green>255</Green> + <Blue>255</Blue> + </Background> + <Outline> + <Style>Solid</Style> + <Thickness>1</Thickness> + <Color> + <Transparency>255</Transparency> + <Red>0</Red> + <Green>0</Green> + <Blue>0</Blue> + </Color> + <Visible>false</Visible> + </Outline> + <Insets> + <Top>0.0</Top> + <Left>2.0</Left> + <Bottom>0.0</Bottom> + <Right>3.0</Right> + </Insets> + <Visible>false</Visible> + + 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 + + <Caption> + <Value>X-Axis Title</Value> + <Font> + <Size>14.0</Size> + <Bold>true</Bold> + <Alignment> + <horizontalAlignment>Center</horizontalAlignment> + <verticalAlignment>Center</verticalAlignment> + </Alignment> + </Font> + </Caption> + <Background xsi:type="attribute:ColorDefinition"> + <Transparency>0</Transparency> + <Red>255</Red> + <Green>255</Green> + <Blue>255</Blue> + </Background> + <Outline> + <Style>Solid</Style> + <Thickness>1</Thickness> + <Color> + <Transparency>255</Transparency> + <Red>0</Red> + <Green>0</Green> + <Blue>0</Blue> + </Color> + </Outline> + <Insets> + <Top>0.0</Top> + <Left>2.0</Left> + <Bottom>0.0</Bottom> + <Right>3.0</Right> + </Insets> + <Visible>false</Visible> + + Below + + Linear + + <Caption> + <Value>Y-Axis Title</Value> + <Font> + <Size>14.0</Size> + <Bold>true</Bold> + <Alignment> + <horizontalAlignment>Center</horizontalAlignment> + <verticalAlignment>Center</verticalAlignment> + </Alignment> + <Rotation>90.0</Rotation> + </Font> + </Caption> + <Background xsi:type="attribute:ColorDefinition"> + <Transparency>0</Transparency> + <Red>255</Red> + <Green>255</Green> + <Blue>255</Blue> + </Background> + <Outline> + <Style>Solid</Style> + <Thickness>1</Thickness> + <Color> + <Transparency>255</Transparency> + <Red>0</Red> + <Green>0</Green> + <Blue>0</Blue> + </Color> + </Outline> + <Insets> + <Top>0.0</Top> + <Left>2.0</Left> + <Bottom>0.0</Bottom> + <Right>3.0</Right> + </Insets> + <Visible>false</Visible> + + 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 + + <Caption> + <Value></Value> + <Font> + <Alignment/> + </Font> + </Caption> + <Background xsi:type="attribute:ColorDefinition"> + <Transparency>0</Transparency> + <Red>255</Red> + <Green>255</Green> + <Blue>255</Blue> + </Background> + <Outline> + <Style>Solid</Style> + <Thickness>1</Thickness> + <Color> + <Transparency>255</Transparency> + <Red>0</Red> + <Green>0</Green> + <Blue>0</Blue> + </Color> + <Visible>false</Visible> + </Outline> + <Insets> + <Top>0.0</Top> + <Left>2.0</Left> + <Bottom>0.0</Bottom> + <Right>3.0</Right> + </Insets> + <Visible>false</Visible> + + 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 + + <Caption> + <Value></Value> + <Font> + <Size>16.0</Size> + <Bold>true</Bold> + <Alignment/> + </Font> + </Caption> + <Background xsi:type="attribute:ColorDefinition"> + <Transparency>0</Transparency> + <Red>255</Red> + <Green>255</Green> + <Blue>255</Blue> + </Background> + <Outline> + <Style>Solid</Style> + <Thickness>1</Thickness> + <Color> + <Transparency>255</Transparency> + <Red>0</Red> + <Green>0</Green> + <Blue>0</Blue> + </Color> + </Outline> + <Insets> + <Top>0.0</Top> + <Left>2.0</Left> + <Bottom>0.0</Bottom> + <Right>3.0</Right> + </Insets> + <Visible>true</Visible> + + 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 @@ + + + + +
+ + + + + + + + + + + + + + + + + + +
+
+ +
+ + + +
+ + + + + + + + + +
+
+
+
+
+
+ +
+ + + + + + + + +
+ + + + + + + + + + + + + +
+
+
+
+
+
+ +
+ + + + + + + + +
+ + + + +
+ + + + + +
+ + + + + + +
+ +
+
+ +
+ + + +
+
+
+
+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+ + + + + + + + + +
+ +
+ + + +
+
+
+
+
+
+ +
+ + + + + + + + +