NAME

JIRA::REST::Lite - A lightweight Perl module for interacting with JIRA REST API

SYNOPSIS

use JIRA::REST::Lite;

my $jira = JIRA::REST::Lite->new({
    url      => 'https://jira.example.net',
    username => 'myuser',
    password => 'mypass',
});

# Get issue
my $issue = $jira->GET("/issue/TST-101");

# Iterate on issues
$jira->set_search_iterator({
    jql        => 'project = "TST" and status = "open"',
    maxResults => 16,
    fields     => [ qw/summary status assignee/ ],
});

while (my $issue = $jira->next_issue) {
    print "Found issue $issue->{key}\n";
}

DESCRIPTION

JIRA::REST::Lite provides a simple interface for interacting with the JIRA REST API, with minimal dependencies.

METHODS

new

my $jira = JIRA::REST::Lite->new(\%args);

Creates a new JIRA::REST::Lite object. The arguments can include url, username, password, session, pat, and anonymous.

GET

my $issue = $jira->GET($path);

Performs a GET request to the JIRA API.

set_search_iterator

$jira->set_search_iterator(\%params);

Sets up an iterator for searching JIRA issues.

next_issue

while (my $issue = $jira->next_issue) {
    print "Found issue $issue->{key}\n";
}

Fetches the next issue from the search iterator.

AUTHOR

[Kawamura Shingo] <pannakoota@gmail.com>

LICENSE

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