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
Eclipse UserFriend
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
Eclipse UserFriend
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: Sun Feb 09 14:18:09 GMT 2025

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

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

Back to the top