且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用Perl SOAP获取JIRA中的自定义字段列表?

更新时间:2022-06-09 21:13:55

注意:您需要管理员才能访问自定义字段

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'}; 
}