问题
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