jirasoapservice和修订版本 [英] jirasoapservice and Fix Version

查看:95
本文介绍了jirasoapservice和修订版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从Jira获得fixversion或创建新的.我使用Jira ver. 4.4.4和速度插件0.2.11. 对于新版本,我可以使用:

I need get fixversion from Jira or create new. I use Jira ver. 4.4.4 and velocity plugin 0.2.11. For new version I can use:

RemoteIssue issue = new RemoteIssue();
RemoteVersion version = new RemoteVersion();
version.name = name;
version.id = ...;// what I must write there if I know only name?

issue.reporter = user.name; 
issue.summary = IssueName;
issue.description = IssueName;
issue.fixVersions = new .RemoteVersion[] { version };

谢谢

推荐答案

当我在JIRA Python CLI代码中使用addVersion SOAP方法时,我没有设置ID,因为JIRA会为您创建它.如果您要设置一个修订版本,则需要为该项目使用getVersions并按名称找到正确的版本.

When I use the addVersion SOAP method in the JIRA Python CLI code I don't set the id, since JIRA will create it for you. If you are trying to set a Fix Version you will need to use getVersions for the project and find the right one by name.

这篇关于jirasoapservice和修订版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆