我很好奇是否有其他人知道如何获取您在 JIRA 中创建的所有自定义字段的列表?如果是这样,你是怎么做到的?
我一直在尝试使用我在上找到的 Perl SOAP 例程JIRA SOAP 服务文档 http://docs.atlassian.com/software/jira/docs/api/rpc-jira-plugin/latest/index.html?com/atlassian/jira/rpc/soap/JiraSoapService.html,但我不知道如何实现它。
Note:您需要管理员才能访问自定义字段
my $soap = SOAP::Lite->proxy("http://jira_url/rpc/soap/jirasoapservice-v2?wsdl") or die $!;
my $login = $soap->login($user,$passwd)->result();
my $cfresult = $soap->getCustomFields($login);
my $cfarray = $cfresult->result;
my %cfhash;
foreach $cfld (@{$cfarray}) {
$cfhash{$cfld->{'name'}} = $cfld->{'id'};
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)