私はjsonを使用してJIRAの問題を閉じることができるメソッドを作成しようとしています。JIRA Rest API閉じるJSONを使用して
../jira/rest/api/latest/issue/MyProj-524/transitions
はここに私のJSON文字列です::私は400の例外(不正なリクエスト)を取得
{ "update" : {"comment": [{"add": {"body":"Fixed"}}]}, "fields" : { "resolution" : {"id":"10000","name":"Done" }}, transition": {"id": "6"}}
とはProtocolErrorの状態 は、ここで私が使用していたURLです。ドキュメントによれば、指定された遷移がない場合、400が返されます。私は
..:8090/jira/rest/api/latest/issue/MyProj-524/transitions
と私のブラウザからJIRAサーバーを照会するとき
はまた、私は、次を得る:
{"expand":"transitions","transitions":[{"id":"5","name":"Resolve Issue","to":{"self":"/jira/rest/api/2/status/5","description":"A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.","iconUrl":"..8090/jira/images/icons/statuses/resolved.png","name":"Resolved","id":"5","statusCategory":{"self":"...8090/jira/rest/api/2/statuscategory/3","id":3,"key":"done","colorName":"green","name":"Done"}}},{"id":"2","name":"Close Issue","to":{"self":".:8090/jira/rest/api/2/status/6","description":"The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.","iconUrl":"..8090/jira/images/icons/statuses/closed.png","name":"Closed","id":"6","statusCategory":{"self":"8090/jira/rest/api/2/statuscategory/3","id":3,"key":"done","colorName":"green","name":"Done"}}}]}
だから、可能な遷移があります表示されます。 Open、Resolved、Closed、Reopened、In Progressの "Classic Default Workflow"を使用しています。チケットの現在の状態は次のとおりです。開く。