NAME

Bot::Backbone::Service::Ticket::Tracker::FogBugz - ticket tracker lookups for FogBugz

VERSION

version 0.160490

SYNOPSIS

service fogbugz_tickets => (
    service  => 'Ticket',
    trackers => [{
        type       => 'FogBugz',

        # use an external configuration
        config     => 'fbrc',

        # mandatory without config to specify the base URL
        base_url   => 'http://company.fogbugz.com/api.asp',

        # use token auth without config
        token      => 'secrettoken',

        # or use username/password auth without config
        email      => 'botuser@example.com',
        password   => 'secret',

        # And formatting and matching config...
        title      => 'Case %{issue}s: %{summary}s',
        link       => 'https://company.fogbugz.com/f/cases/%{issue}s',
        patterns   => [
            qr{(?<!/)\bbugzid:(?<issue>\d+)\b},
            qr{(?<![\[])\b(?<schema>https:)//company\.fogbugz\.com/f/cases/(?<issue>\d+)\b},
        ],
    }],
);

DESCRIPTION

This works with Bot::Backbone::SErvice::Ticket to perform FogBugz ticket lookups and summaries.

ATTRIBUTE

config

This will set the config in WebService::FogBugz.

base_url

This is the base URL of your FogBugz host instance. This is required when "config" is not set.

token

This is required unless "email" and "password" are used. This is the authorization token to use when contacting the FogBugz web API.

email

This is required unless "token" is used. This is the email to use for authentication.

password

This is required unless "token" is used. This is the password to use for authentication.

METHODS

lookup_issue

This is a vere simple lookup that will grab the case metadata and return the title summary.

AUTHOR

Andrew Sterling Hanenkamp <hanenkamp@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by Qubling Software LLC.

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