我找到了一个CPAN JIRA::Client::Automated
来使用perl脚本在JIRA中创建任务但不确定它是如何工作的。我写了一个简单的函数来在JIRA中创建任务但是失败了。任何人都可以帮我吗?
use JIRA::Client::Automated;
my $url = "https://jira.com/jira/projects";
my $user = "user";
my $password = "password";
my $jira = JIRA::Client::Automated->new($url, $user, $password);
my $jira_ua = $jira->ua(); # to add in a proxy
$jira->trace(1); # enable tracing of requests and responses
my $project = "Project";
my $type = "Bug";
my $summary = "Try open task in JIRA";
my $description = "I success";
my $issue = $jira->create_issue($project, $type, $summary, $description);