私のjsonpajaxリクエストは次のようになりますが、機能しません。私の推測では、URLが正しくありません。このURLは正常に機能し、欠陥の説明を取得します。
(https://rally1.rallydev.com/slm/webservice/1.37/defect.js?workspace=https://rally1.rallydev.com/slm/webservice/1.37/workspace/108748843&query=&start=1&pagesize=20
)
しかし、以下は欠陥を作成するためのURLでは機能しません。
(https://rally1.rallydev.com/slm/webservice/1.37/defect/create.js
)
var request = $.ajax({
url: "https://rally1.rallydev.com/slm/webservice/1.37/defect/create.js",
data: { 'Defect': defectData },
dataType: 'jsonp',
jsonp: 'jsonp',
username: "<username>",
password: "<pass>",
success: function(data, textStatus, jqXHR){
console.log(data);
}
});