Skip Menu |

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

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

People
Owner: FRIMICC [...] cpan.org
Requestors: TIMB [...] cpan.org
Cc:
AdminCc:

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



Subject: update_issue only supports fields/set form, not the verb form
The update_issue method takes the supplied $update_hash and wraps it with { fields => $update_hash } so only simple updates can be performed. The docs don't make that clear. The transition_issue method is also documented as taking a $update_hash but that reference is not wrapped, so the verb form of update can be used but that's a very different kind of $update_hash than the one that the update_issue method takes. The docs don't make this distinction clear. Also the example in https://metacpan.org/pod/JIRA::Client::Automated#JIRA-ISSUE-HASH-FORMAT isn't a valid hash, it has three elements.
Good catch. Sorry for the discrepancies. I'll try to update the docs in the next week, but it may take me longer to make update and transition have the same semantics. Thanks! -- Michael On Wed Jul 02 11:31:53 2014, TIMB wrote: Show quoted text
> The update_issue method takes the supplied $update_hash and wraps it > with { fields => $update_hash } so only simple updates can be > performed. The docs don't make that clear. > > The transition_issue method is also documented as taking a > $update_hash but that reference is not wrapped, so the verb form of > update can be used but that's a very different kind of $update_hash > than the one that the update_issue method takes. > > The docs don't make this distinction clear. > > Also the example in > https://metacpan.org/pod/JIRA::Client::Automated#JIRA-ISSUE-HASH- > FORMAT isn't a valid hash, it has three elements.
Thanks for the great patches! I've merged them and released 1.1 containing all your fixes. Please let me know if you have more problems or suggestions for the module. -- Michael On Wed Jul 02 11:31:53 2014, TIMB wrote: Show quoted text
> The update_issue method takes the supplied $update_hash and wraps it > with { fields => $update_hash } so only simple updates can be > performed. The docs don't make that clear. > > The transition_issue method is also documented as taking a > $update_hash but that reference is not wrapped, so the verb form of > update can be used but that's a very different kind of $update_hash > than the one that the update_issue method takes. > > The docs don't make this distinction clear. > > Also the example in > https://metacpan.org/pod/JIRA::Client::Automated#JIRA-ISSUE-HASH- > FORMAT isn't a valid hash, it has three elements.
Thanks for the quick response. I've already installed the release.