Skip to main content

A helga plugin that can be used to store responses that can be returned from a question

Project description

A helga plugin for providing links and/or descriptions of JIRA tickets. For example:

<sduncan> can you look at API-123
<helga> sduncan might be talking about JIRA ticket http://example.com/API-123

Regular expressions for this plugin are stored as the project key without any numbers. So in the example above, the regular expression for ‘API-123’ is stored as ‘API’. This plugin also responds with multiple tickets should they be found:

<sduncan> i'm working on API-123 and API-456
<helga> sduncan might be talking about JIRA ticket http://example.com/API-123, http://example.com/API-456

Optionally, this plugin can use JIRA’s REST API in order to show full ticket descriptions if the setting JIRA_REST_API is set and JIRA_SHOW_FULL_DESCRIPTIONS is set to True:

<sduncan> can you look at API-123
<helga> [API-123] Make a new version of the API

This plugin also includes a command for adding or removing JIRA ticket patterns. Usage:

helga jira (add_re|remove_re) <pattern>

For example:

<sduncan> !jira add_re API
<sduncan> API-123
<helga> sduncan might be talking about JIRA ticket http://example.com/API-123
<sduncan> !jira remove_re API
<sduncan> API-123

Settings

JIRA_URL

A URL format string for showing JIRA links. This should contain a format parameter ‘{ticket}’. (default: ‘http://localhost/{ticket}’)

JIRA_REST_API

A URL string, if non-empty, for a JIRA REST API for the JIRA plugin to use. Much like JIRA_URL, this should contain a format parameter ‘{ticket}’. Note that this requires a minmum JIRA version to work, one that has the updated REST api. See https://docs.atlassian.com/software/jira/docs/api/REST/latest/. (default: ‘http://localhost/api/{ticket}’)

JIRA_SHOW_FULL_DESCRIPTION

A boolean, if False, only the formatted JIRA_URL will be returned for JIRA links. If True, a full ticket title will be shown. This requires JIRA_REST_API to be set. (default: False)

JIRA_AUTH

A two-tuple of JIRA credentials, username and password. If empty, no authentication is used. (default: (‘’, ‘’))

License

Copyright (c) 2015 Shaun Duncan

Licensed under an MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

helga-jira-0.1.2.tar.gz (5.2 kB view details)

Uploaded Source

File details

Details for the file helga-jira-0.1.2.tar.gz.

File metadata

  • Download URL: helga-jira-0.1.2.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for helga-jira-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b165a54fde68c83fcce1f151d6d676092406504bffecefb0b3fb088017489a9f
MD5 f76b80d3fc608071f512f23308eccf06
BLAKE2b-256 19d04a15f4c6b5637aecc6ff262c369bbd88c138332abae3b861c55cfddded07

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page