Files
ofbiz-plugins/scrum/widget/EmailTemplates.xml
T

152 lines
7.2 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
<screen name="ActiveSprintNotification">
<section>
<condition>
<or>
<not><if-empty field="sprintId"/></not>
<not><if-empty field="partyIdTo"/></not>
</or>
</condition>
<actions>
<entity-one entity-name="WorkEffort" value-field="sprint">
<field-map field-name="workEffortId" from-field="sprintId"/>
</entity-one>
<entity-and entity-name="WorkEffortAndProduct" list="projectList">
<field-map field-name="workEffortId" from-field="sprint.workEffortParentId"/>
</entity-and>
<set field="project" from-field="projectList[0]"/>
<entity-one entity-name="Product" value-field="prodcut">
<field-map field-name="productId" from-field="project.productId"/>
</entity-one>
<entity-one entity-name="PartyNameView" value-field="person">
<field-map field-name="partyId" from-field="partyIdTo"/>
</entity-one>
<set field="title" value="Sprint Notification SprintId# ${sprintId}"/>
</actions>
<widgets>
<platform-specific><html><html-template location="component://scrum/templates/ActiveSprintNotification.ftl"/></html></platform-specific>
</widgets>
<fail-widgets>
<label text="SprintId is required or PartyId is required"></label>
</fail-widgets>
</section>
</screen>
<screen name="ClosedSprintNotification">
<section>
<condition>
<or>
<not><if-empty field="sprintId"/></not>
<not><if-empty field="partyIdTo"/></not>
</or>
</condition>
<actions>
<entity-one entity-name="WorkEffort" value-field="sprint">
<field-map field-name="workEffortId" from-field="sprintId"/>
</entity-one>
<entity-and entity-name="WorkEffortAndProduct" list="projectList">
<field-map field-name="workEffortId" from-field="sprint.workEffortParentId"/>
</entity-and>
<set field="project" from-field="projectList[0]"/>
<entity-one entity-name="Product" value-field="prodcut">
<field-map field-name="productId" from-field="project.productId"/>
</entity-one>
<entity-one entity-name="PartyNameView" value-field="person">
<field-map field-name="partyId" from-field="partyIdTo"/>
</entity-one>
<set field="title" value="Sprint Notification SprintId# ${sprintId}"/>
</actions>
<widgets>
<platform-specific><html><html-template location="component://scrum/templates/ClosedSprintNotification.ftl"/></html></platform-specific>
</widgets>
<fail-widgets>
<label text="SprintId is required or PartyIdTo is required"></label>
</fail-widgets>
</section>
</screen>
<screen name="AcceptedBacklogNotification">
<section>
<condition>
<not><if-empty field="custRequestId"/></not>
</condition>
<actions>
<set field="custRequestId" from-field="custRequestId"/>
<set field="partyIdTo" from-field="partyIdTo"/>
<script location="component://scrum/webapp/scrum/WEB-INF/actions/BacklogNotifications.groovy"/>
<set field="title" value="Backlog Notification backlog item# ${custRequestId}"/>
</actions>
<widgets>
<platform-specific><html><html-template location="component://scrum/templates/AcceptedBacklogNotification.ftl"/></html></platform-specific>
</widgets>
<fail-widgets>
<label text="Backlog Id is required."></label>
</fail-widgets>
</section>
</screen>
<screen name="ReviewedBacklogNotification">
<section>
<condition>
<or>
<not><if-empty field="custRequestId"/></not>
<not><if-empty field="partyIdTo"/></not>
</or>
</condition>
<actions>
<set field="custRequestId" from-field="custRequestId"/>
<set field="partyIdTo" from-field="partyIdTo"/>
<script location="component://scrum/webapp/scrum/WEB-INF/actions/BacklogNotifications.groovy"/>
<set field="title" value="Backlog Notification backlog item# ${custRequestId}"/>
</actions>
<widgets>
<platform-specific><html><html-template location="component://scrum/templates/ReviewedBacklogNotification.ftl"/></html></platform-specific>
</widgets>
<fail-widgets>
<label text="Backlog Id is required."></label>
</fail-widgets>
</section>
</screen>
<screen name="CompletedBacklogNotification">
<section>
<condition>
<not><if-empty field="custRequestId"/></not>
</condition>
<actions>
<set field="custRequestId" from-field="custRequestId"/>
<set field="partyIdTo" from-field="partyIdTo"/>
<script location="component://scrum/webapp/scrum/WEB-INF/actions/BacklogNotifications.groovy"/>
<set field="title" value="Backlog Notification backlog item# ${custRequestId}"/>
</actions>
<widgets>
<platform-specific><html><html-template location="component://scrum/templates/CompletedBacklogNotification.ftl"/></html></platform-specific>
</widgets>
<fail-widgets>
<label text="Backlog Id is required."></label>
</fail-widgets>
</section>
</screen>
<screen name="CancelledBacklogNotification">
<section>
<condition>
<or>
<not><if-empty field="custRequestId"/></not>
<not><if-empty field="partyIdTo"/></not>
</or>
</condition>
<actions>
<set field="custRequestId" from-field="custRequestId"/>
<set field="partyIdTo" from-field="partyIdTo"/>
<script location="component://scrum/webapp/scrum/WEB-INF/actions/BacklogNotifications.groovy"/>
<set field="title" value="Backlog Notification backlog item# ${custRequestId}"/>
</actions>
<widgets>
<platform-specific><html><html-template location="component://scrum/templates/CancelledBacklogNotification.ftl"/></html></platform-specific>
</widgets>
<fail-widgets>
<label text="Backlog Id is required."></label>
</fail-widgets>
</section>
</screen>
</screens>