#Jira获取issue活动中改动记录,查找xx更新过xx field字段
可以使用jira api/2/issue 接口:
Get issue GET /rest/api/2/issue/{issueIdOrKey}
jira_server_url + ‘/rest/api/2/issue/%s?expand=changelog&fields=summary’ % jira_key
fields 指定主题是因为不指定会返回所有fields字段信息!
返回值结构:
{
“changelog”:{
“total”:16,
“startAt”:0,
“histories”:Array[16],
“maxResults”:16
},
“fields”:Object{…},
“self”:“http://jira.xxxxx.com/rest/api/2/issue/xxxxxx”,
“key”:“xxxxxx”,
“id”:“xxxxx”,
“expand”:“renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations”
}

jira api/2/issue 接口:
Get issue GET /rest/api/2/issue/{issueIdOrKey}

Returns a full representation of the issue for the given issue key.

An issue JSON consists of the issue key, a collection of fields, a link to the workflow transition sub-resource, and (optionally) the HTML rendered values of any fields that support it (e.g. if wiki syntax is enabled for the description or comments).

The fields param (which can be specified multiple times) gives a comma-separated list of fields to include in the response. This can be used to retrieve a subset of fields. A particular field can be excluded by prefixing it with a minus.

By default, all (*all) fields are returned in this get-issue resource. Note: the default is different when doing a jql search – the default there is just navigable fields (*navigable).

*all - include all fields
*navigable - include just navigable fields
summary,comment - include just the summary and comments
-comment - include everything except comments (the default is *all for get-issue)
*all,-comment - include everything except comments
The {@code properties} param is similar to {@code fields} and specifies a comma-separated list of issue properties to include. Unlike {@code fields}, properties are not included by default. To include them all send {@code ?properties=*all}. You can also include only specified properties or exclude some properties with a minus (-) sign.

{@code *all} - include all properties
{@code *all, -prop1} - include all properties except {@code prop1}
{@code prop1, prop1} - include {@code prop1} and {@code prop2} properties
JIRA will attempt to identify the issue by the issueIdOrKey path parameter. This can be an issue id, or an issue key. If the issue cannot be found via an exact match, JIRA will also look for the issue in a case-insensitive way, or by looking to see if the issue was moved. In either of these cases, the request will proceed as normal (a 302 or other redirect will not be returned). The issue key contained in the response will indicate the current value of issue’s key.

The expand param is used to include, hidden by default, parts of response. This can be used to include:

renderedFields - field values in HTML format
names - display name of each field
schema - schema for each field which describes a type of the field
transitions - all possible transitions for the given issue
operations - all possibles operations which may be applied on issue
editmeta - information about how each field may be edited. It contains field’s schema as well.
changelog - history of all changes of the given issue
versionedRepresentations - REST representations of all fields. Some field may contain more recent versions. RESET representations are numbered. The greatest number always represents the most recent version. It is recommended that the most recent version is used. version for these fields which provide a more recent REST representation. After including versionedRepresentations “fields” field become hidden.
Request
QUERY PARAMETERS
parameter type description
fields string the list of fields to return for the issue. By default, all fields are returned.

expand string
properties string the list of properties to return for the issue. By default no properties are returned.

Jira获取issue活动中改动记录,查找xx更新过xx field字段相关推荐

  1. 通过Mybatis获取mysql表中重复记录的方法

    输入条件:函数F返回的某表A的id列表 (id列表中的数据可能带有重复) 目标:依据该i列表 id 的顺序获取相应的记录列表. 方法:在mysql本身的语句中未发现有好的方法,即使用 in 语句也只能 ...

  2. php获取数据库表中总记录行数并打印

    <?php require("init.php");$sql = "SELECT count(*) FROM ha_user";$result = mys ...

  3. 【Android 插件化】Hook 插件化框架 ( 通过反射获取 “宿主“ 应用中的 Element[] dexElements )

    Android 插件化系列文章目录 [Android 插件化]插件化简介 ( 组件化与插件化 ) [Android 插件化]插件化原理 ( JVM 内存数据 | 类加载流程 ) [Android 插件 ...

  4. 【Android 插件化】Hook 插件化框架 ( 通过反射获取 “插件包“ 中的 Element[] dexElements )

    Android 插件化系列文章目录 [Android 插件化]插件化简介 ( 组件化与插件化 ) [Android 插件化]插件化原理 ( JVM 内存数据 | 类加载流程 ) [Android 插件 ...

  5. EPICS calc模块中aCalcout记录介绍

    内容 1.介绍 数组计算输出或"aCalcout"记录源自sCalcout(字符串calcout)记录,sCalcout(字符串calcout)记录源自calcout记录.除了变量 ...

  6. LinuxC下获取UDP包中的路由目的IP地址和头标识目的地址

    在接受到UDP包后,有时候我们需要根据所接收到得UDP包,获取它的路由目的IP地址和头标识目的地址. (一)主要的步骤: 在setsockopt中设置IP_PKTINFO,然后通过recvmsg来获取 ...

  7. html页面按钮删除一条数据库,需要添加一个删除按钮到一个HTML表格从数据库中删除记录与消息...

    IDNameCodeActiveEdit <?php foreach($nurseries->result() as $nursery) { ?> <?php echo $nu ...

  8. 幼儿园观察记录的目的和目标_幼儿园观察记录:如何让幼儿在区角活动中真正动起来...

    区角活动是幼儿园教育教学活动中的重要组成部分,它贯穿于幼儿园一日生活的各个环节当中.它是幼儿园教育中促进幼儿个性化发展的有效形式.区角活动的内容与主题结合提升目的性;区角活动的材料与本土资源结合,凸显 ...

  9. C# API之常用操作窗口类函数详解[查找所有窗口、获取目标句柄的类名、获取窗口文本、获取当前活动窗口、通过窗口句柄获取线程ID、获取指定窗口位置]

    /// <summary>/// 查找所有窗口(只要是在进程里面的)/// 如果不限制类名或者标题使用null代替/// </summary>/// <param nam ...

最新文章

  1. 有漏洞无作为才可怕、可耻!
  2. 排序算法--冒泡排序的首尾改进
  3. [云炬创业学笔记]第二章决定成为创业者测试6
  4. java不用析构函数,堆栈分配的类--C发生不需要的析构函数调用
  5. 应用ForkJoin –从最佳到快速
  6. 2019 CCPC-Wannafly Winter Camp Div2 Day1
  7. varnish 4.0 官方文档翻译14-Built in subroutines
  8. ImageMagick命令执行漏洞(CVE-2016–3714)利用及测试
  9. C++添加一个头文件和extern以及全局变量和局部变量问题(清C++蓝书16.3.19上机的一小题)...
  10. 浙江省智慧城市建设改变百姓生活
  11. 【Shiro第二篇】SpringBoot + Shiro实现用户身份认证功能
  12. 利用Python实现Shp格式向GeoJSON的转换!
  13. 苹果cmsV10简约白色风格自适应模板
  14. mac服务器文件无法删除不了,Mac删除文件时一些文件被锁定不能删除的解决方法...
  15. OSEK 网络管理之认识NM报文
  16. java doc转pdf又来了,这一次超简单
  17. excel自动求和_瞬间搞定一月数据汇总!这个Excel求和公式太牛了
  18. Excel如何快速查询银行卡开户行?
  19. Windows任意文件读取漏洞
  20. 由于其配置信息(注册表中的)不完整或已损坏,Windows 无法启动这个硬件设备。 (代码 19)怎么办?

热门文章

  1. 审阅 Windchill 和 Creo 设置
  2. 如何设置能WORD文档只能看不能修改,不能复制粘贴不能另存?
  3. xray扫描器的安装及应用
  4. Python 基础学习 --入门(了解小常识)
  5. Python 列表——冒泡排序
  6. MacBook Ari想象一下
  7. 方舟编译器只能编译Java_方舟编译器的安装和编译Helloword
  8. iphone之间同步所有_在iPhone上请勿打扰和静音之间有什么区别?
  9. P1784 小水同学的巧克力 OJ
  10. 小水滴工作室:用智能bm平台筑起安全堡垒