Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the JIRA-Client CPAN distribution.

Report information
The Basics
Id: 75157
Status: resolved
Priority: 0/
Queue: JIRA-Client

People
Owner: GNUSTAVO [...] cpan.org
Requestors: stephen.marquard [...] uct.ac.za
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



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. ###
Subject: Re: [rt.cpan.org #75157] AutoReply: Unable to use create_issue to create a sub-task
Date: Mon, 20 Feb 2012 18:04:47 +0200
To: <bug-JIRA-Client [...] rt.cpan.org>
From: "Stephen Marquard" <stephen.marquard [...] uct.ac.za>
A workaround for this issue is to specify the type numerically, e.g.: my $issuefields = { project => 'REC', type => 5, summary => "Error in recording $start", description => "Recording $title failed with:\n$error", assignee => '', reporter => 'vulabot', parent => $issuekey }; where 5 is the JIRA type ID of the desired Sub-task type. ### 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. ###
Hi Stephen. Thank you for your bug report. I've just released version 0.33 of JIRA::Client which I think fix this. Please, give it a try and let me know how it goes. (You can fetch the new version from http://code.google.com/p/jira-client/ if it hasn't appeared on CPAN yet.) Gustavo.