-
Bug
-
Resolution: Unresolved
-
Low
-
1
-
Minor
-
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
- Two object types (Parent_1/Parent_2)
- Create one child object type (Child_1) for Parent_1 object type
- 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" }