It's all about the answers!

Ask a question

Importing "Booleans" from ClearQuest to Jazz


David Fay (4164) | asked Sep 11 '09, 2:05 p.m.
Hi,

I have some checkboxes in ClearQuest whose underlying values are 0 and 1. I'd like to get them displayed as checkboxes on my imported work items as well.

My Boolean Editor Presentation correctly displays a checkbox, but the values are being placed in the discussion presentation instead of the showing up as a checkmark (or lack thereof) on the checkbox. The text in the discussion field is "FieldX was: 0" or "FieldX was : 1".

My custom attribute looks like:

<customAttributes category="com.ibm.team.workitem.workItemType">
...
<customAttribute id="fieldx" name="Field X" type="boolean"/>
...
</customAttributes>

My presentation attribute looks like:

<presentation attributeId="fieldx" kind="com.ibm.team.workitem.kind.boolean" label="Field X"/>

And my mapping file looks like:

<attribute sourceId="fieldx_chkbox targetId="fieldx" />


Can anyone tell me if I'm on the wrong track for displaying data in checkboxes or if I've just done something wrong here?

Thanks,

David

3 answers



permanent link
David Fay (4164) | answered Sep 11 '09, 4:45 p.m.
Ok, obviously I'm having trouble with the formatting, but you get the idea...

permanent link
Lorelei Ngooi (1.5k22) | answered Sep 14 '09, 2:44 p.m.
JAZZ DEVELOPER
I think your presentation configuration is fine. The problem is with the boolean mapping. The importer expects values of true or false, not 1 or 0, for boolean values. Add value mappings to the boolean value property mapping to convert the 1's and 0's to true and false. For example, your mapping should look like the following:

<attribute sourceId="fieldx_chkbox targetId="fieldx">
<value sourceId="1" targetId="true"/>
<value sourceId="0" targetId="false"/>
</attribute>

permanent link
David Fay (4164) | answered Sep 16 '09, 12:01 p.m.
Awesome, that worked!

Thanks!

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.