Need some help with workitem templates
Hello,
I am trying to create a Defect work item using a work item template. I want to link the Defect work item to a task work item by associating the task work item as a parent to the defect. I am adding a prompt for the work item ID of the parent WI (task) that I want to later use for linking. I am able to get the work item created but the parent-child link is not getting set.
Here is the template code:
<?xml version="1.0" encoding="UTF-8"?>
<rtc_cm:WorkItemTemplate xmlns:dc="http://purl.org/dc/terms/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rtc_cm="http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/">
<dc:identifier>com.ibm.team.workitem.template6</dc:identifier>
<dc:title>Submit Defect w Parent (Task) Link</dc:title>
<dc:description/>
<rtc_cm:workItems>
<rtc_cm:defect rdf:ID="item0">
<rtc_cm:WorkItemTemplateParameter default="Enter short description of the Defect" id="Summary" name="Summary"/>
<rtc_cm:WorkItemTemplateParameter default="Enter Parent (task) ticket number" id="id" name="id"/>
<rtc_cm:plannedFor rdf:resource="${plannedFor:Iteration}"/>
<rtc_cm:filedAgainst rdf:resource="${filedAgainst:Category}"/>
<dc:title>Parent WI ${id}: ${Summary}</dc:title>
<rtc_cm:com.ibm.team.workitem.linktype.parentworkitem.parent rdf:ID="${id}"/>
</rtc_cm:defect>
</rtc_cm:workItems>
</rtc_cm:WorkItemTemplate>
Please let me know what am I missing. Thanks in advance.
Regards.
NP
Accepted answer
I would suggest to check with the documentation:
also
I am pretty sure there is no prompt mechanism to prompt for a work item ID. My assumption is that you would have to design the template in such a way that you select the parent work item and then create and link the client work item using the template.