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

Problem with custom fields

Hi,

my configuration of a custom work item looks like this:
<customAttributes category="com.ibm.team.workitem.workItemType.training">

<customAttribute id="com.ibm.team.workitem.workItemType.training.kind"
name="Kind" type="string"/>

<customAttribute id="com.ibm.team.workitem.workItemType.training.country"
name="Country" type="string"/>

<customAttribute id="com.ibm.team.workitem.workItemType.training.hotel"
name="Hotel" type="string"/>

<customAttribute
id="com.ibm.team.workitem.workItemType.training.flightticket" name="Flight
ticket" type="string"/>

<customAttribute
id="com.ibm.team.workitem.workItemType.training.refreshment"
name="Refreshment" type="string"/>

<customAttribute id="com.ibm.team.workitem.workItemType.training.invoiced"
name="Event invoiced to participants" type="string"/>

</customAttributes>



However, if I create new training item, there is missing "invoiced"
parameter and diplicity of "refreshment" attribute.

What's wrong?



Regards,



Roman

0 votes



3 answers

Permanent link
Hi Roman
I tried your example and it works fine for me. There are however
problems with attribute renaming in beta2 (it is not possible to rename
attributes).
Is it possible that you renamed one of the attributes later (after
saving the project area with the wrong name e.g. because of copy/paste)?

To find out whether the same attribute is really shown twice you can
type something in one refreshment field and leave the field (the
attribute is updated on focus lost). If both refreshment fields now show
the same content, it is really the same attribute and a bug. Otherwise
it is the attribute naming that does not match.

HTH

Marcel
Jazz Work Item team

Roman Smirak wrote:
Hi,

my configuration of a custom work item looks like this:
customAttributes category="com.ibm.team.workitem.workItemType.training"

customAttribute id="com.ibm.team.workitem.workItemType.training.kind"
name="Kind" type="string"/

customAttribute id="com.ibm.team.workitem.workItemType.training.country"
name="Country" type="string"/

customAttribute id="com.ibm.team.workitem.workItemType.training.hotel"
name="Hotel" type="string"/

customAttribute
id="com.ibm.team.workitem.workItemType.training.flightticket" name="Flight
ticket" type="string"/

customAttribute
id="com.ibm.team.workitem.workItemType.training.refreshment"
name="Refreshment" type="string"/

customAttribute id="com.ibm.team.workitem.workItemType.training.invoiced"
name="Event invoiced to participants" type="string"/

/customAttributes



However, if I create new training item, there is missing "invoiced"
parameter and diplicity of "refreshment" attribute.

What's wrong?



Regards,



Roman

0 votes


Permanent link
Hi Marcel,

it seems to be the first case (the bug) - as far as I remember I did save
incomplete process spec.

Is there any work-around?

Roman


"Marcel Bihr" <marcel_bihr@ch.ibm.com> wrote in message
news:fnvc6g$97q$1@localhost.localdomain...
Hi Roman
I tried your example and it works fine for me. There are however
problems with attribute renaming in beta2 (it is not possible to rename
attributes).
Is it possible that you renamed one of the attributes later (after
saving the project area with the wrong name e.g. because of copy/paste)?

To find out whether the same attribute is really shown twice you can
type something in one refreshment field and leave the field (the
attribute is updated on focus lost). If both refreshment fields now show
the same content, it is really the same attribute and a bug. Otherwise
it is the attribute naming that does not match.

HTH

Marcel
Jazz Work Item team

Roman Smirak wrote:
Hi,

my configuration of a custom work item looks like this:
customAttributes category="com.ibm.team.workitem.workItemType.training"

customAttribute id="com.ibm.team.workitem.workItemType.training.kind"
name="Kind" type="string"/

customAttribute id="com.ibm.team.workitem.workItemType.training.country"
name="Country" type="string"/

customAttribute id="com.ibm.team.workitem.workItemType.training.hotel"
name="Hotel" type="string"/

customAttribute
id="com.ibm.team.workitem.workItemType.training.flightticket"
name="Flight
ticket" type="string"/

customAttribute
id="com.ibm.team.workitem.workItemType.training.refreshment"
name="Refreshment" type="string"/

customAttribute
id="com.ibm.team.workitem.workItemType.training.invoiced"
name="Event invoiced to participants" type="string"/

/customAttributes



However, if I create new training item, there is missing "invoiced"
parameter and diplicity of "refreshment" attribute.

What's wrong?



Regards,



Roman

0 votes


Permanent link
Hi Roman
If you already created work items of type Training that you want to
keep, you should wait for M5 - the issue is fixed there.
Otherwise you can try to remove the 'wrong' attribute and add a new one
with a different id and the correct name. The workitem editor should
only show the custom fields as declared in the current process
specification (except for items already created with a different set of
attributes).

Regards,

Marcel
Jazz Work Item team

Roman Smirak wrote:
Hi Marcel,

it seems to be the first case (the bug) - as far as I remember I did save
incomplete process spec.

Is there any work-around?

Roman


"Marcel Bihr" <marcel_bihr@ch.ibm.com> wrote in message
news:fnvc6g$97q$1@localhost.localdomain...
Hi Roman
I tried your example and it works fine for me. There are however
problems with attribute renaming in beta2 (it is not possible to rename
attributes).
Is it possible that you renamed one of the attributes later (after
saving the project area with the wrong name e.g. because of copy/paste)?

To find out whether the same attribute is really shown twice you can
type something in one refreshment field and leave the field (the
attribute is updated on focus lost). If both refreshment fields now show
the same content, it is really the same attribute and a bug. Otherwise
it is the attribute naming that does not match.

HTH

Marcel
Jazz Work Item team

Roman Smirak wrote:
Hi,

my configuration of a custom work item looks like this:
customAttributes category="com.ibm.team.workitem.workItemType.training"

customAttribute id="com.ibm.team.workitem.workItemType.training.kind"
name="Kind" type="string"/

customAttribute id="com.ibm.team.workitem.workItemType.training.country"
name="Country" type="string"/

customAttribute id="com.ibm.team.workitem.workItemType.training.hotel"
name="Hotel" type="string"/

customAttribute
id="com.ibm.team.workitem.workItemType.training.flightticket"
name="Flight
ticket" type="string"/

customAttribute
id="com.ibm.team.workitem.workItemType.training.refreshment"
name="Refreshment" type="string"/

customAttribute
id="com.ibm.team.workitem.workItemType.training.invoiced"
name="Event invoiced to participants" type="string"/

/customAttributes



However, if I create new training item, there is missing "invoiced"
parameter and diplicity of "refreshment" attribute.

What's wrong?



Regards,



Roman



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

Question asked: Feb 01 '08, 6:38 a.m.

Question was seen: 5,752 times

Last updated: Feb 01 '08, 6:38 a.m.

Confirmation Cancel Confirm