Assign default value to Filed Against attribute of workitem
2 answers
I am importing records from ClearQuest to Team Concert using
Connector. I wanted a default category to be assigned to all the
records that are imported (Filed Against attribute). Is there a way I
can do that?
Any suggestions are greatly appreciated.
RTC 3.0 and RTC 2.0.0.2 support the concept of default values. In 3.0,
you can define the default value in the UI.
For 2.0.0.2, you find more information in
https://jazz.net/wiki/bin/view/Main/AttributeValueProviders
--
Regards,
Patrick
RTC Work Item Component Lead
If you are using the CQ Import wizard to import the records, then you can add a value mapping to the data mapping file that specifies a fixed category value.
<attribute sourceId="Project" targetId="com.ibm.team.workitem.attribute.category"/>
<attributeType targetId="category">
<value sourceId="*" targetId="SomeFixedCategory"/>
</attributeType>
In this example, * is a wild card character, so regardless of the source value, the target value is fixed.
If you are using the CQ Synchronizer (formerly CQ Connector) instead to import the records, then please see the "To map an empty external value to a fixed category value" section in the online help, http://publib.boulder.ibm.com/infocenter/rtc/v2r0m0/topic/com.ibm.team.connector.cq.doc/topics/t_edit_synch_rules_for_categories.html.
<attribute sourceId="Project" targetId="com.ibm.team.workitem.attribute.category"/>
<attributeType targetId="category">
<value sourceId="*" targetId="SomeFixedCategory"/>
</attributeType>
In this example, * is a wild card character, so regardless of the source value, the target value is fixed.
If you are using the CQ Synchronizer (formerly CQ Connector) instead to import the records, then please see the "To map an empty external value to a fixed category value" section in the online help, http://publib.boulder.ibm.com/infocenter/rtc/v2r0m0/topic/com.ibm.team.connector.cq.doc/topics/t_edit_synch_rules_for_categories.html.