CC: | IT-1276 [...] jira.mensa.de |
Subject: | POD errorr in SYNOPSIS |
The SYNOPSIS states:
my $jira = JIRA::REST->new({
URL => 'https://jira.example.net',
username => 'myuser',
password => 'mypass',
});
But that gives …
JIRA::REST::new: unknown arguments: 'URL'.
… because in fact, the key "url" is expected in lowercase.
Also I found a minor typo further down.
Please find a patch attached.
Regards
Martin
Subject: | jira-rest-pod.patch |
--- a/lib/JIRA/REST.pm
+++ b/lib/JIRA/REST.pm
@@ -386,7 +386,7 @@ version 0.019
use JIRA::REST;
my $jira = JIRA::REST->new({
- URL => 'https://jira.example.net',
+ url => 'https://jira.example.net',
username => 'myuser',
password => 'mypass',
});
@@ -568,7 +568,7 @@ fields, you pass C</rest/api/latest/field>, and in order to get SLA
information about an issue you pass
C</rest/servicedeskapi/request/$key/sla>.
-If you're using a method form Jira Core REST API you may omit the prefix
+If you're using a method from Jira Core REST API you may omit the prefix
C</rest/api/VERSION>. For example, to GET the list of all fields you may
pass just C</field>.