I am able to create a defect using their XML REST API based on example found here: https://rally1.rallydev.com/slm/doc/webservice/rest_xml.jsp
However, I'm not able to do the same using jquery with their JSON api: This is how I submit a PUT in order to create a defect:
var defectData = JSON.stringify(
{
Description: 'bla bla bla bla',
Name: 'This is the defect name',
Priority: 'None',
ReleaseNote: 'false',
Severity: 'Major Problem',
State: 'Open',
Owner: "https://<rallysite>/slm/webservice/1.28/user/<myuserid>.js"
}
);
$.ajax({
url: "https://<rallysite>/slm/webservice/1.28/defect/create",
type: 'PUT',
mimeType: 'application/javascript',
data: { 'Defect': defectData },
dataType: 'json',
username: "<myusername>",
password: "<mypassword>",
success: function(data){
console.log(data);
}
});
I don't see the PUT request being submitted through firebug on firefox or through dev tools in IE. I don't see any errors either. I tried doing a simple GET request to query my projects in Rally, and that works ok.
Not sure what I'm doing wrong, would appreciate help. Thanks!