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

Use JazzPlainJava call to modify fields other than Coments?

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?

0 votes



2 answers

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

0 votes


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

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
× 10,941

Question asked: Oct 21 '10, 9:17 a.m.

Question was seen: 4,557 times

Last updated: Oct 21 '10, 9:17 a.m.

Confirmation Cancel Confirm