It's all about the answers!

Ask a question

Creating workitem in RTC using OSLC


Lipi Das (2612535) | asked Dec 12 '13, 5:15 a.m.

Hi,

Is there any sample code for creating a workitem in RTC using OSLC. I understand that it is to be done using creation factory, but need some help on the approach.The OSLC workshop pdf does not have code for creating workitems.

Thanks

Lipi


Comments
Karthik Krishnan commented Dec 12 '13, 5:17 a.m.

I have some but not using factories but OSCL 1.0 way. If you need  I could share


Lipi Das commented Dec 12 '13, 5:24 a.m.

Hi Karthik,

It would be helpful if you could share your approach as well.

Thanks

Lipi


Karthik Krishnan commented Dec 12 '13, 5:24 a.m.

 I have some on OSCL 1.0 and not using Factories. If that's OK for you I can share my implementation


Lipi Das commented Dec 12 '13, 5:28 a.m.

Hi Karthik,

That is ok.

Thanks

Lipi


Karthik Krishnan commented Dec 13 '13, 12:52 p.m.

I typed a lengthy answer unfortunately the Jazz.net did not post it :( I will try & reply over the weekend 


Lipi Das commented Dec 19 '13, 3:50 a.m.

I am getting a HTTP/1.1 302 Moved Temporarily error message when I am trying to post a defect on the factory url through code.

I am however able to create defects using poster plugin in Firefox using the same content

showing 5 of 6 show 1 more comments

5 answers



permanent link
Lauren Hayward Schaefer (3.3k11727) | answered Dec 12 '13, 6:57 a.m.
JAZZ DEVELOPER
You may find this article helpful: https://jazz.net/library/article/1001

permanent link
Andy Jewell (24236174) | answered Dec 18 '13, 1:20 p.m.
 I've seen a full example with source code but can't seem to locate it.  Here's an example of doing the same thing using REST.

permanent link
Canberk Akduygu (99237371) | answered Dec 19 '13, 8:09 a.m.
I I always get Http 405 Method Not allowed error during workitem creation with Java or Firefox Poster.

I POST to https://wat01ibmclm:9443/ccm/oslc/contexts/_Kw3GkmJHEeODZojFwTfvdw/workitems

<oslc_cm:ChangeRequest
  xmlns:dc="http://purl.org/dc/terms/"
  xmlns:rtc_cm="https://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:oslc_cm="http://open-services.net/xmlns/cm/1.0/">
  <dc:title>A new Bug</dc:title>
  <dc:description>This is new bug</dc:description>
  <dc:type rdf:resource="https://wat01ibmclm:9443/ccm/oslc/types/_Kw3GkmJHEeODZojFwTfvdw/task"/>
</oslc_cm:ChangeRequest>

permanent link
Lipi Das (2612535) | answered Dec 20 '13, 4:04 a.m.

I am getting a HTTP/1.1 302 Moved Temporarily error message when I am trying to post a defect on the factory url through code.

I am however able to create defects using poster and restclient plugin in Firefox using the same content


Comments
Canberk Akduygu commented Dec 20 '13, 9:19 a.m.

permanent link
Prashant More (117) | answered May 31 '16, 2:31 a.m.
 Hello Lipi,
   I want to create workitem using oslc, please guide me how to do that.

Thanks,
Prashant

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.