Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Lyo » create different types of change request(bug,task,feature etc.)
create different types of change request(bug,task,feature etc.) [message #1785943] Mon, 23 April 2018 12:32 Go to next message
prakash singh is currently offline prakash singhFriend
Messages: 2
Registered: April 2018
Junior Member
I need to create work item using oslc java api of type bug/task/feature etc., iam able to create the worktem of type task and defect but couldnt create the workitems of any other type

CreationFactory taskCreation = client.lookupCreationFactoryResource(serviceProviderUrl,
OSLCConstants.OSLC_CM_V2, task.getRdfTypes()[0].toString(), OSLCConstants.OSLC_CM_V2 + "task");

CreationFactory taskCreation = client.lookupCreationFactoryResource(serviceProviderUrl,
OSLCConstants.OSLC_CM_V2, task.getRdfTypes()[0].toString(), OSLCConstants.OSLC_CM_V2 + "defect");


how to create the workitems of diffent types?
Re: create different types of change request(bug,task,feature etc.) [message #1786156 is a reply to message #1785943] Thu, 26 April 2018 08:55 Go to previous message
Jad El-khoury is currently offline Jad El-khouryFriend
Messages: 31
Registered: August 2015
Member
Is this the same problem as the one you posted on https://www.eclipse.org/forums/index.php/m/1786155/#msg_1786155 ?

The method lookupCreationFactoryResource is meant to return the CreationFactory, and not the Task resource itself.
The factory is essentially the URI you can POST your resource to (from the client) in order to ask the server to create the resource for you.

So assuming you are using the creationFactory as it is meant to be, you need to first check that the server can handle the type of resources you are sending.
But I have a feeling (from your text) that your text intention does not match the code.
Previous Topic:How to create risk type change request?
Next Topic:RQM Categories
Goto Forum:
  


Current Time: Mon Sep 24 05:14:31 GMT 2018

Powered by FUDForum. Page generated in 0.01835 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top