我正在尝试使用Jira REST API incuding组件创建问题。我发布此JSON但我收到远程服务器返回错误:(400)错误请求。
问题是: - 没有组件没有错误,但是当组件出现问题时。有帮助吗? JSON:
{
"fields": {
"project": {
"key": "keyGoesHere"
},
"assignee": {
"name": "name.surname"
},
"component": {
"name": "someName"
},
"summary": "test2",
"description": "test2",
"issuetype": {
"name": "Task"
}
}
}
答案 0 :(得分:4)
我找到了答案。以防有人需要它。
public class EventsController: Controller
{
public ActionResult Search(UserModel model)
{
//do something
return View(); //return "Search" view to the user
//return View(model); //You can also return view with the model to the user
//return View("SpecificView"); //You can specify a concrete view name as well
}
}