How do I get a list of custom fields in JIRA with Perl SOAP?

喜欢而已 提交于 2019-12-07 13:14:20

问题


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.


回答1:


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


来源:https://stackoverflow.com/questions/749038/how-do-i-get-a-list-of-custom-fields-in-jira-with-perl-soap

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!