我有以下数据,希望使用rest url一次将两个工作日志插入到同一个问题中:
curl -u jogbra:jogbra -X POST -k --data @data_holiday.txt -H "Content-Type: application/json" https://jira.myworkplace/jira/rest/api/2/issue/4371/worklogdata_holiday.txt包含:
{
"comment": "Christmas Day",
"started": "2015-12-25T08:50:09.423+0000",
"timeSpent": "8h 0m"
},
{
"comment": "Labor Day",
"started": "2015-09-07T08:50:09.423+0000",
"timeSpent": "8h 0m"
}它只得到第一个假期(不管有没有逗号)。
最终的目标是实现假日人口的自动化。我看不到用一个请求创建多个工作日志的方法,所以我应该使用一个循环来调用curl吗?如果这样做,是否需要为每个假日创建一个数据文件?
我从this post中看到,google已经用“批处理”端点解决了这个批处理请求问题。我如何在jira中做到这一点?
发布于 2015-03-03 08:17:15
对不起,但是在JIRA中,如果请求,每个工作日志只有一个:https://docs.atlassian.com/jira/REST/latest/#d2e795
https://stackoverflow.com/questions/28800594
复制相似问题