It's all about the answers!

Ask a question

Problem with custom fields


Roman Smirak (3164933) | asked Feb 01 '08, 6:38 a.m.
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

3 answers



permanent link
Marcel Bihr, Jazz Work Item team (1.4k) | answered Feb 01 '08, 10:08 a.m.
JAZZ DEVELOPER
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


permanent link
Roman Smirak (3164933) | answered Feb 01 '08, 12:38 p.m.
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


permanent link
Marcel Bihr, Jazz Work Item team (1.4k) | answered Feb 04 '08, 3:18 a.m.
JAZZ DEVELOPER
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



Your answer


Register or to post your answer.