It's all about the answers!

Ask a question

How to update custom attribute via OSLC


Carlito V (11156) | asked Jan 27 '15, 10:30 a.m.
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!

2 answers



permanent link
Donald Nong (14.5k414) | answered Jan 27 '15, 6:20 p.m.
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.

Comments
Yehiel Glass commented Jan 28 '15, 2:32 a.m. | edited Jan 28 '15, 8:38 p.m.

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!


Donald Nong commented Jan 28 '15, 8:40 p.m.

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
Sujith Babu Bandla (265) | answered Sep 01 '17, 9:13 a.m.

Hi Donald,


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

Thanks,
Sujith

Your answer


Register or to post your answer.