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

How to update custom attribute via OSLC

We use oslc4Net for updating Work-items in RTC.
Custom attributes are different and we need your assistance to understand the way to update them.
Maybe you can give an example in oslc4net.
Thanks!

0 votes



2 answers

Permanent link
What differences of customer attributes did you notice? If you're aware of them, you should just treat them differently. As far as I know, the only difference is that custom attributes are in the name space "rtc_ext". The way to retrieve and update these attributes is no different from the "built-in" ones.

1 vote

Comments

Hi Donald,

Yopur answewr helped me!

I was wrong in the namespace :

Why on get operation I get rtc_cm namespace and not rtc_ext?

This is my code:

var d = new Dictionary<QName, object>();

d.Add(new QName("http://jazz.net/xmlns/prod/jazz/rtc/ext/1.0/", "msp_task_uniqeid", "rtc_ext"), "3333");

d.Add(new QName("http://jazz.net/xmlns/prod/jazz/rtc/ext/1.0/", "testme", "rtc_ext"), "3333");

changeRequest.SetExtendedProperties(d);

Thanks!

If you meant that when you did the GET operation and got the custom attribute in the "rtc_cm" namespace, it sounds like a defect to me.


Permanent link

Hi Donald,


Thank you...This post helped me to set the custom attribute values programatically using Java.

Thanks,
Sujith

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,938

Question asked: Jan 27 '15, 10:30 a.m.

Question was seen: 4,260 times

Last updated: Sep 01 '17, 9:13 a.m.

Confirmation Cancel Confirm