Issue in configuring Enumeration using Configuration Data Delta
Iam trying to add a new Enumeration using Configuration-data-delta based on the documentation available @ https://jazz.net/wiki/bin/view/Main/ConfigurationDataDeltaUserDoc. Below is the xml source of my Process Configuration and my Project Area follows scrum template and uses Process which is shared from another Project Area.
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright (c) 2007-2013 IBM Corporation. All rights reserved. This file is part of a process template created for use with the Jazz Process Framework. Your use of the process template (and hence this file) is subject to the following terms and conditions found in the process attachment named process_template_license.html. -->
<process-specification xmlns="http://com.ibm.team.process">
<project-configuration>
<data>
<configuration-data-delta configuration-data-id="com.ibm.team.workitem.configuration.enumerations">
<add-element>
<addition>
<enumeration attributeTypeId="com.newEnumeration" name="New_Enumeration">
<literal default="true" null="true" id="newlit.id.1" name="Literal 1" />
<literal id="newlit.id.2" name="Literal 2" />
<literal id="newlit.id.3" name="Literal 3" />
</enumeration>
</addition>
</add-element>
</configuration-data-delta>
<configuration-data-delta configuration-data-id="com.ibm.team.workitem.editor.configuration.presentations">
<add-element>
<path>
<section id="com.ibm.team.workitem.section.task.details">
<presentation attributeId="com.ibm.team.workitem.attribute.target" />
</section>
</path>
<addition location="after">
<presentation attributeId="com.newEnumeration" kind="com.ibm.team.workitem.kind.enumeration" />
</addition>
</add-element>
</configuration-data-delta>
</data>
</project-configuration>
</process-specification>
With this configuration the Enumeration is not visible in the UI (Both Web and Eclipse Client).
Iam using 4.0.6 version of the Jazz Platform.
Any thoughts on where I might have gone wrong ? Any inputs will be useful.
Accepted answer
from the configuration shared above,
I see the declaration of the enumeration type with an the type id "com.newEnumeration"
attributeTypeId="com.newEnumeration"
and
a presentation definition which refers to an attribute with id "com.newEnumeration"
<presentation attributeId="com.newEnumeration" kind="com.ibm.team.workitem.kind.enumeration" />
this i feel is the conflicting part :
- using "attribute type id" when an "attribute id" was expected
to resolve, please create a custom attribute of you new enumeration type
and
use the id of the custom attribute in defining your presentation
hope this helps.