如何使用Perl SOAP获取JIRA中的自定义字段列表? [英] How do I get a list of custom fields in JIRA with Perl SOAP?
本文介绍了如何使用Perl SOAP获取JIRA中的自定义字段列表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我很好奇,是否有人想知道如何在JIRA中创建的所有自定义字段的列表?如果是这样,您是怎么做到的?
I was curious if anyone else had an idea how to get a list of all of the custom fields you have created in JIRA? If so, how did you do it?
I've been trying to use a Perl SOAP routine I found on JIRA SOAP service documentation, but I have no idea how to implement it.
推荐答案
注意:您需要管理员才能访问自定义字段
Note: You will need admin to access custom fields
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'};
}
这篇关于如何使用Perl SOAP获取JIRA中的自定义字段列表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文