Main Content

createChangeRequest

Create change request in OSLC service provider

    Description

    example

    myChangeRequest = createChangeRequest(myCreationFactory,title) creates a change request with the specified title by using the creation factory myCreationFactory in the Open Services for Lifecycle Collaboration (OSLC) service provider.

    Examples

    collapse all

    This example shows how to submit a creation request for a new change request 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 Change Management Domain, create a creation factory for the change request resource type.

    myCreationFactory = getCreationFactory(myClient,'ChangeRequest');

    Use the creation factory to create a new change request resource with the title My New Change Request. Retrieve the full resource data from the service provider for the change request resource and inspect the resource.

    newCR = createChangeRequest(myCreationFactory,'My New Change Request');
    fetch(newCR,myClient);
    newCR
    newCR = 
    
      ChangeRequest with properties:
    
        ResourceUrl: 'https://localhost:9443/ccm/resource/itemName/...'
              Dirty: 0
          IsFetched: 1
              Title: 'My New Change Request'
         Identifier: '204'

    Open the change request resource in the system browser by using the show function.

    show(newCR)

    Input Arguments

    collapse all

    OSLC resource creation factory, specified as an oslc.core.CreationFactory object.

    Change request title, specified as a character array.

    Output Arguments

    collapse all

    OSLC change request resource, returned as an oslc.cm.ChangeRequest object.

    Introduced in R2021a