How to get a list of custom fields in JIRA using Perl SOAP?

I was curious if anyone has an idea how to get a list of all the custom fields you created in JIRA? If so, how did you do this?

I am trying to use the Perl SOAP program that I found on the JIRA SOAP service documentation , but I have no idea how to implement it.

+3
source share
2 answers

Note. You will need an 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'}; 
}
+2
source

You can read this article about the JIRA Perl Client .

+3
source

Source: https://habr.com/ru/post/1706414/


All Articles