Workflow就是用来定义定义Issue的状态。 Workflow由两部分组成: Status 状态 Transition 转换动作 下图中的按钮样式就是Status,从一种状态转换为另一种状态的箭头就是Transition。 一个典型工作流 从一种状态切换到另外一种状态必须借助Transition。JIRA提供了方便的配置项,可以自动生成Transition(允许所有状态切换到当前状态...
for (String issueKey : subTaskKeys) { for (int i = 0; i < status.size(); i++) { //请求内容 String requestBody = "{\"transition\": {\n \"id\": \"" + status.get(i) + "\"\n }\n}"; //调用接口修改任务状态 httpClient("post", "http://you jira address:port/rest/api...
http://example.com:8080/jira/rest/api/2.0.alpha1/issue http://example.com:8080/jira/rest/api/2.0.alpha1/issue/{issueKey}[GET] http://example.com:8080/jira/rest/api/2.0.alpha1/issue/{issueKey}/transitions[GET,POST] http://example.com:8080/jira/rest/api/2.0.alpha1/issue/{issueKey}...
http://example.com:8080/jira/rest/api/2/component [POST] http://example.com:8080/jira/rest/api/2/component/{id} [DELETE, GET, PUT] http://example.com:8080/jira/rest/api/2/component/{id}/relatedIssueCounts [GET] http://example.com:8080/jira/rest/api/2/customFieldOption http:...
{ "id": "10000", "key": "TST-24", "self": "http://www.example.com/jira/rest/api/2/issue/10000"}复制代码1.2.3.4.5.6. 下面这种就属于比较霸王级别的难看。一个响应结构体去。表示编辑之后的issues的状态。结果没想到在JSON对象中包了这么多层。为了让文章能缩短一下,我把里数组重复的内容给删除...
"self": "http://www.example.com/jira/rest/api/2/issue/10000" } 下面这种就属于比较霸王级别的难看。一个响应结构体去。表示编辑之后的issues的状态。结果没想到在JSON对象中包了这么多层。为了让文章能缩短一下,我把里数组重复的内容给删除了,但是还是有这么复杂的响应结构体,简直就是丧心病狂!
Enhance your app with Jira REST APIs: Create, update, or delete Jira issues from your application or service Read data from Jira to display issues in your application Enhance and extend Jira issues: Show info from another application on the Jira Issue page Automatically update or transition ...
--data'{ "transition": { "id": "5" }, "update": { "comment": [ { "add": { "body": "Bug has been fixed." } } ] } }' 用上rest/api/2/issue/{issueIdOrKey}/transitions我们就可以更新工单状态了,同时在工单下留下评论。 这个API也是成功后不返回body,直接204状态 ...
{"id":"https://docs.atlassian.com/jira/REST/schema/issue-update#","title":"Issue Update","type":"object","properties": {"transition": {"title":"Transition","type":"object","properties": {"id": {"type":"string"},"name": {"type":"string"},"to": {"title":"Status","type"...
首先,必须要了解JIRA api的接口结构,其中<resource-name>可以理解成api的方法,比如project,就是项目信息,user就是用户信息,issue就是问题信息... 1 http://hostname/rest/<api-name>/<api-version>/<resource-name> JIRA's REST API is provided by a plugin that is anchored under the URI path component...