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

Importing "Booleans" from ClearQuest to Jazz

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

0 votes



3 answers

Permanent link
Ok, obviously I'm having trouble with the formatting, but you get the idea...

0 votes


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

0 votes


Permanent link
Awesome, that worked!

Thanks!

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: Sep 11 '09, 2:05 p.m.

Question was seen: 5,331 times

Last updated: Sep 11 '09, 2:05 p.m.

Confirmation Cancel Confirm