It's all about the answers!

Ask a question

Issue in configuring Enumeration using Configuration Data Delta


Sudarshan Venkatesha (812) | asked Aug 26 '14, 4:14 a.m.
edited Aug 26 '14, 4:17 a.m.

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


permanent link
Dinesh Kumar B (4.1k413) | answered Aug 26 '14, 5:46 a.m.
JAZZ DEVELOPER

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.
Sudarshan Venkatesha selected this answer as the correct answer

Comments
Sudarshan Venkatesha commented Aug 26 '14, 6:00 a.m.

Thanks for the quick reply.
Perhaps this clarity is missing in the Documentation about Delta Configuration.


Dinesh Kumar B commented Aug 26 '14, 6:07 a.m.
JAZZ DEVELOPER

glad that it helped.

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.