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

How to create a Task WorkItem using OSLC 2.0

Hi,
I need to create a new Task using Java. Should i use POST/PUT and can you provide me syntax of url format and body to create a Task Work Item.
Sample code helps me a lot :)

Regards
Chandan

0 votes



One answer

Permanent link
With Java you may also use the RTC Java API to manipulate work items

With OSLC refer - https://jazz.net/forum/questions/124269/resolved-create-work-task-work-item-via-oslc

With Java API --> Refer this blog https://rsjazz.wordpress.com/ by @ralphschoon  You will find lots of examples

1 vote

Comments

Hi Karthik,

I tried using Rest Client.
URL : https://localhost:9443/ccm/oslc/contexts/_7zrIUNj9EeS7ButJuJdZ2w/workitems/task


Added the Headers.
I did PUT
Its not working.

405 Method Not Allowed

To avoid the "405 Method not allowed" error, you need to add a proper "Accept" header.

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
× 1,220

Question asked: Apr 16 '15, 2:46 a.m.

Question was seen: 4,108 times

Last updated: Apr 17 '15, 4:44 a.m.

Confirmation Cancel Confirm