Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

showing a custom attribute in the workitem form

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

0 votes



2 answers

Permanent link
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

0 votes


Permanent link
thanks for catching the typo. that did it!

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 11,047

Question asked: Jul 03 '07, 12:18 p.m.

Question was seen: 11,259 times

Last updated: Jul 03 '07, 12:18 p.m.

Confirmation Cancel Confirm