Create requirement in OSLC service provider
Create a New Requirement
This example shows how to submit a creation request for a new requirement resource with a configured OSLC client.
After you have created and configured the OSLC client
myClient as described
in Create and Configure an OSLC Client for the Requirements Management Domain, create a creation factory for the requirement resource
myCreationFactory = getCreationFactory(myClient,'Requirement');
Use the creation factory to create a new requirement resource with the title
Requirement. Retrieve the full resource data from the service provider for the
requirement resource and inspect the
newReq = createRequirement(myCreationFactory,'My New Requirement'); fetch(newReq,myClient); newReq
newReq = Requirement with properties: ResourceUrl: 'https://localhost:9443/rm/resources/_72lxMWJREeup0...' Dirty: 0 IsFetched: 1 Title: 'My New Requirement' Identifier: '1806'
Open the requirement resource in the system browser by using the