[英]How do I get the expand properties when using JIRA ''Get IDs of updated worklogs'' REST api?
Using JIRA, I get a list of IDs for worklogs updated by using this api . 使用JIRA,我获得了使用此api更新的工作日志的ID列表。
/rest/api/2/worklog/updated
I can get the regular request to work, but there is a parameter called expand
to display additional properties of the worklog and I can not get these properties to appear. 我可以得到正常的工作请求,但是有一个名为
expand
的参数来显示工作日志的其他属性,而我无法显示这些属性。
Things I have tried so far. 到目前为止我尝试过的事情。
/rest/api/2/worklog/updated?expand=spentTime
/rest/api/2/worklog/updated?expand=authorName,comment
The example response in JIRA document (link mentioned above) has a field called properties
. JIRA文档(上面提到的链接)中的示例响应具有一个称为
properties
的字段。 It may be used to contain expand properties. 它可以用来包含扩展属性。
But I don't know why my response doesn't have that field. 但是我不知道为什么我的回答没有这个领域。
If what you're looking for is timeSpent
, expanding properties
is not the correct approach. 如果您要查找的是
timeSpent
,则扩展properties
不是正确的方法。 You're going to get the relevant workLogIds
returned by Get IDs of updated worklogs , then make a second REST call to Get worklogs . 您将获得由获取更新的工作日志的ID返回的相关
workLogIds
,然后对Get工作日志进行第二次REST调用。 This call will give you timeSpent
, and updateAuthor
among others. 该调用将为您提供
timeSpent
和updateAuthor
等。 However, it will not give you comments; 但是,它不会给您评论。 you'll be needing a different call for that.
您将需要一个不同的电话。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.