AnsweredAssumed Answered

Inconsistent Messaging for Defect vs User Story POST - Submitted By

Question asked by techbusinessman1 on May 22, 2014
Latest reply on May 28, 2014 by John_Streeter
Can you please clear up why posting:

{
  "HierarchicalRequirement": {
    "Name": "Testing Problem 74",
    "Severity": "5",
    "Description": " Steps to Reproduce = Here are some steps Desired Result = I wish these to be my results. Actual Result = Why are my results not as awesome as I expected?",
    "c_SalesforceProblemID": "00000137",
    "Project": {
      "_ref": "https://rally1.rallydev.com/slm/webservice/v3.0/project/cec8bf43-5355-41e0-ac3d-e28137433310",
      "_refObjectUUID": "cec8bf43-5355-41e0-ac3d-e28137433310",
      "_refObjectName": "QA_SFDC-SAN_Support",
      "_type": "Project"
    },
    "SubmittedBy": {
      "_refObjectUUID": "c4786bc4-a653-4ad0-9654-4cc129a1d17c",
      "_type": "User"
    }
  }
}

is successful but this is not:

{
  "Defect": {
    "Name": "Testing Problem 74",
    "Severity": "Cosmetic",
    "Description": "Steps to Reproduce = Here are some steps Desired Result = I wish these to be my results. Actual Result = Why are my results not as awesome as I expected?",
    "c_SalesforceProblemID": "00000137",
    "Project": {
      "_ref": "https://rally1.rallydev.com/slm/webservice/v3.0/project/cec8bf43-5355-41e0-ac3d-e28137433310",
      "_refObjectUUID": "cec8bf43-5355-41e0-ac3d-e28137433310",
      "_refObjectName": "QA_SFDC-SAN_Support",
      "_type": "Project"
    },
    "SubmittedBy": {
      "_refObjectUUID": "c4786bc4-a653-4ad0-9654-4cc129a1d17c",
      "_type": "User"
    }
  }
}

CreateResult Error for the second block POST is:

"CreateResult": {
    "Errors": [
      "Cannot parse object reference from \"{\"SubmittedBy\": {\"_refObjectUUID\": \"c4786bc4-a653-4ad0-9654-4cc129a1d17c\", \"_type\": \"User\"}}\""
    ],
    "Warnings": []
  }
}

Outcomes