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

Creating workitem in RTC using OSLC

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

0 votes

Comments

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

Hi Karthik,

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

Thanks

Lipi

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

Hi Karthik,

That is ok.

Thanks

Lipi

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

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
You may find this article helpful: https://jazz.net/library/article/1001

1 vote


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

0 votes


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

0 votes


Permanent link

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

0 votes

Comments


Permanent link
 Hello Lipi,
   I want to create workitem using oslc, please guide me how to do that.

Thanks,
Prashant

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

Question asked: Dec 12 '13, 5:15 a.m.

Question was seen: 7,837 times

Last updated: May 31 '16, 2:31 a.m.

Confirmation Cancel Confirm