NAME

Net::Lighthouse::Project::Ticket - Project Ticket

SYNOPSIS

use Net::Lighthouse::Project::Ticket;
my $ticket = Net::Lighthouse::Project::Ticket->new(
    account    => 'sunnavy',
    auth       => { token => '' },
    project_id => 12345
);
$ticket->load( 1 );
print $ticket->state;
$ticket->delete;

ATTRIBUTES

created_at, updated_at, milestone_due_on

ro, Maybe DateTime

number, priority, user_id, project_id, creator_id, attachments_count,

ro, Maybe Int

closed

ro, Bool

raw_data, user_name, permalink, url, latest_body, creator_name, assigned_user_name, milestone_title

ro, Maybe Str

attachments

ro, ArrayRef of Net::Lighthouse::Project::Ticket::Attachment

versions

ro, ArrayRef of Net::Lighthouse::Project::Ticket::Version

assigned_user_id, milestone_id

rw, Maybe Int

title, state, tag,

rw, Maybe Str

INTERFACE

load( $id ), load_from_xml( $hashref | $xml_string )

load a ticket, return the loaded ticket object

create( title => '', body => '', state => '', assigned_user_id => '', milestone_id => '', tag => '', )

create a ticket, return true if succeeded

update( title => '', body => '', state => '', assigned_user_id => '', milestone_id => '', tag => '', )

update a ticket, return true if succeeded

delete

delete a ticket, return true if succeeded

list( query => '', page => '' )

return a list of tickets, each isa Net::Lighthouse::Project::Ticket.

NOTE: the ticket in this list doesn't load versions and attachments attrs

initial_state

return hashref, carrying the initial_state info

SEE ALSO

http://lighthouseapp.com/api/tickets

AUTHOR

sunnavy <sunnavy@bestpractical.com>

LICENCE AND COPYRIGHT

Copyright 2009-2010 Best Practical Solutions.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.