Subject: | JIRA::client handling of getProjectRoleActors |
Date: | Tue, 15 Feb 2011 11:52:11 +0100 |
To: | <bug-JIRA-Client [...] rt.cpan.org> |
From: | Philippe PM MARTIN <philippe.pm.martin [...] alcatel-lucent.com> |
Hello,
first of all thanks for your wrapper around JIRA's SOAP Api, this helps
a lot!
My config is the following:
JIRA-Client-0.25
Perl v5.10.1
Ubuntu 10.10 / kernel 2.6.35-24
To perform admin tasks and migration tasks, I need to programmatically
GET/SET info via method such as
getProjectRoleActors. But call to this method fails with error message:
/"soapenv:Server.userException, java.lang.IllegalArgumentException:
java.lang.ClassCastException@11be910"./
Example:
my $jira = JIRA::Client->new($url, $user, $pass);
## Get all Role Actors for Sandbox
my $proj = "SBOX";
my $remoteProj = $jira->getProjectByKey($proj);
my $pr = $jira->getProjectRoles();
my @listofroles = @{$pr};
foreach my $role ( @listofroles ) {
my $remoteProjRoleActors = $jira->*getProjectRoleActors*($role,
$remoteProj);
#print Dumper ($remoteProjRoleActors);
}