It's all about the answers!

Ask a question

Use JazzPlainJava call to modify fields other than Coments?


Guowei Jim Hu (1.0k810353) | asked Oct 21 '10, 9:17 a.m.
I use JazzPlainJava API call to write some ClearCase checkin data into the RTC Comments field of the work item they specify.

But they can't query and generate report to sort the data out of the Comments field.

So we are think of writing the data into a custom field instead of Comments.

I remeber there are limitations on updating the RTC fields using JazzPlainJava API call but don't remeber the details.

So can I use it to write data into a custom field?

If anyone has tried, could you post an example please?

2 answers



permanent link
Patrick Streule (4.9k21) | answered Oct 25 '10, 1:41 p.m.
JAZZ DEVELOPER
I use JazzPlainJava API call to write some ClearCase checkin data into
the RTC Comments field of the work item they specify.

But they can't query and generate report to sort the data out of the
Comments field.

So we are think of writing the data into a custom field instead of
Comments.

I remeber there are limitations on updating the RTC fields using
JazzPlainJava API call but don't remeber the details.

So can I use it to write data into a custom field?

If anyone has tried, could you post an example please?

It is possible to add data to custom fields using plain java, and I am
not aware of any limitations here.

You can use (pseudo-code):

IWorkItemCommon workItemService= ...
IAttribute attribute= workItemService.findAttribute(projectArea, "your
custom attribute id", monitor);

workItem.setValue(attribute, yourValue);


--
Regards,
Patrick
RTC Work Item Component Lead

permanent link
Guowei Jim Hu (1.0k810353) | answered Dec 06 '10, 7:37 a.m.
I use JazzPlainJava API call to write some ClearCase checkin data into
the RTC Comments field of the work item they specify.

But they can't query and generate report to sort the data out of the
Comments field.

So we are think of writing the data into a custom field instead of
Comments.

I remeber there are limitations on updating the RTC fields using
JazzPlainJava API call but don't remeber the details.

So can I use it to write data into a custom field?

If anyone has tried, could you post an example please?

It is possible to add data to custom fields using plain java, and I am
not aware of any limitations here.

You can use (pseudo-code):

IWorkItemCommon workItemService= ...
IAttribute attribute= workItemService.findAttribute(projectArea, "your
custom attribute id", monitor);

workItem.setValue(attribute, yourValue);


--
Regards,
Patrick
RTC Work Item Component Lead

Thanks, Patrick.

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.