我尝试使用python jira-cli客户端"https://github.com/alisaifee/jira-cli“来指定额外的字段duedate:
jira-cli new --project SYSENG --type "Service Request" --extra "duedate=01/01/2018" --protocol rest test或
jira-cli new --project SYSENG --type "Service Request" --extra "{'duedate': '01/Dec/18'}" --protocol rest test我无论如何都不能创建工单,因为在我的Jira中,到期日期是必需的。
我没有在官方的Doc中找到一个方法,你知道有什么方法可以实现它吗?
发布于 2017-01-26 18:59:51
实际上,经过一些挖掘,我发现在client.py的jira包中,1368行说明了日期应该如何格式化:
基于REST浏览器的
需要:"2014-06-03T08:21:01.273+0000“
因此,我尝试了:
jira-cli new --project SYSENG --type story "This is a test story" --description='description' --extra "duedate=2018-01-01" -v而且它起作用了。
https://stackoverflow.com/questions/41461263
复制相似问题