It's all about the answers!

Ask a question

showing a custom attribute in the workitem form


Annie Ying (2061103) | asked Jul 03 '07, 12:18 p.m.
JAZZ DEVELOPER
I'm looking at the Jazz 0.6 Milestone New and Noteworthy document, and we found some information about custom attributes representation. Basically the document says we need to add the following xml fragments to the process configuration file:


<static-configuration-data id="com.ibm.team.workitem.configuration.workItemTypes" xmlns="http://com.ibm.team.workitem/workitemTypes">
.....
<customAttributes
category="com.ibm.team.workitem.configuration.workItemType">
<customAttribute
id="lowerEstimate1"
type="string"
name="Lower Estimate1"
/>
</customAttributes>
</static-configuration-data>

<static-configuration-data
id="com.ibm.team.workitem.ui.editor.configuration.layout"
xmlns="http://com.ibm.team.workitem.ui.editor/layout">
<customAttributes>
<customAttribute
attributeId="lowerEstimate1"
target="com.ibm.team.workitem.ui.editor.details.assignment"
/>
</customAttributes>
</static-configuration-data>



However, we have some trouble making the attribute show up on the workitem page -- the attribute is created, but it doesn't seem to get added as a custom attribute of the workitem. Does anybody know what's wrong?

Thanks very much!
Annie

2 answers



permanent link
Marcel Bihr, Jazz Work Item team (1.4k) | answered Jul 04 '07, 2:33 a.m.
JAZZ DEVELOPER
Hi Annie

aying wrote:

static-configuration-data
id="com.ibm.team.workitem.configuration.workItemTypes"
xmlns="http://com.ibm.team.workitem/workitemTypes"
....
customAttributes
category="com.ibm.team.workitem.configuration.workItemType"
<customAttribute
id="lowerEstimate1"
type="string"
name="Lower Estimate1"
/
</customAttributes
/static-configuration-data

Try to set the category to "com.ibm.team.workitem.workItemType" . It

should work then.
FYI: Be aware that custom attribute definitions that are deleted from
the xml file still exist in the repository. Reusing attribute ids can
therefore lead to unexpected behavior (is not a problem in this case,
but can be confusing otherwise).

static-configuration-data
id="com.ibm.team.workitem.ui.editor.configuration.layout"
xmlns="http://com.ibm.team.workitem.ui.editor/layout"
<customAttributes
<customAttribute
attributeId="lowerEstimate1"
target="com.ibm.team.workitem.ui.editor.details.assignment"
/
</customAttributes
/static-configuration-data
This looks fine and should work.


Marcel

permanent link
Annie Ying (2061103) | answered Jul 07 '07, 1:08 a.m.
JAZZ DEVELOPER
thanks for catching the typo. that did it!

Your answer


Register or to post your answer.