Subject: | Unable to use create_issue to create a sub-task |
Date: | Mon, 20 Feb 2012 15:26:51 +0200 |
To: | <bug-JIRA-Client [...] rt.cpan.org> |
From: | "Stephen Marquard" <stephen.marquard [...] uct.ac.za> |
JIRA::Client Version 0.32
perl -v: This is perl, v5.8.8 built for x86_64-linux-thread-multi
(v4.4.1#660-r161644)
I would like to use create_issue to create a subtask, but cannot
specify a valid Type field.
The type field in JIRA is "Sub-task" but this is rejected by
JIRA::Client apparently because it does not consult
getSubTaskIssueTypes() but only consults getIssueTypes()
So this code:
my $issuefields =
{
project => 'REC',
type => 'Sub-task',
summary => "Error in recording $start",
description => "Recording $title failed with:\n$error",
assignee => '',
reporter => 'vulabot',
parent => $issuekey
};
my $jira_issue = createIssue($jira_host, $jira_user, $jira_pass,
$issuefields);
produces:
There is no issue type called 'Sub-task'.
at jiralib.pl line 180
If I specify a valid type name for a parent-level issue, e.g. "Task" or
"Recording" (the type of the parent issue), I get a JIRA error:
soapenv:Server.userException,
com.atlassian.jira.rpc.exception.RemoteValidationException: {} :
[issuetype: The issue type selected is invalid.] at jiralib.pl line 180
Regards
Stephen
###
UNIVERSITY OF CAPE TOWN
This e-mail is subject to the UCT ICT policies and e-mail disclaimer
published on our website at
http://www.uct.ac.za/about/policies/emaildisclaimer/ or obtainable from
+27 21 650 9111. This e-mail is intended only for the person(s) to whom
it is addressed. If the e-mail has reached you in error, please notify
the author. If you are not the intended recipient of the e-mail you may
not use, disclose, copy, redirect or print the content. If this e-mail
is not related to the business of UCT it is sent by the sender in the
sender's individual capacity.
###