Uploaded image for project: 'Jira Service Management Cloud'
  1. Jira Service Management Cloud
  2. JSDCLOUD-13437

Updating the parentObjectTypeId when making a call PUT /objecttype/{id} doesn't change the Parent ObjectType

      Issue Summary

      API Endpoint PUT /objecttype/<id> has an option to provide the parentObjectTypeId but it is not updating the Parent Object Type if you post a different Parent Id.

      Steps to Reproduce

      1. Two object types (Parent_1/Parent_2)
      2. Create one child object type (Child_1) for Parent_1 object type
      3. Send a PUT https://api.atlassian.com/jsm/assets/workspace/<workspaceid>/v1/objecttype/<object_id> to update Child_1 objecttype with Request body having parentObjectTypeId pointing to Parent_2 object type id.

      Expected Results

      Child_1 object is linked to Parent_2 object type

      Actual Results

      Parent object type of Child_1 object is not updated.

      Workaround

      Use  POST/objecttype/<id>/position  to change the parent of an object type.
      It accepts a request body as below and where toObjectTypeId is the new parent object type id.

      {
      "position":0,
      "toObjectTypeId":"3"
      }
       

       

            [JSDCLOUD-13437] Updating the parentObjectTypeId when making a call PUT /objecttype/{id} doesn't change the Parent ObjectType

            There are no comments yet on this issue.

              Unassigned Unassigned
              207d30156835 Ivan Chapistrak
              Affected customers:
              3 This affects my team
              Watchers:
              5 Start watching this issue

                Created:
                Updated: