如何使用Perl SOAP获取JIRA中的自定义字段列表? [英] How do I get a list of custom fields in JIRA with Perl SOAP?

查看:61
本文介绍了如何使用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屋!

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