Skip to main content

Format and upload Watson time logs to Jira as Tempo worklogs

Project description

CircleCI

Watson-Jira

Upload watson time logs to Jira from the CLI! Selects Watson time logs whose project name matches a Jira naming regex, formats those logs to Tempo format, and uploads to the appropriate Jira tickets. Will not double-write logs, and makes no local edits.

Install

$ pip install watson-jira

Setup

API access to Jira needs to be enabled, this can be done one of 2 ways:

Guided:

$ watson-jira init

Manual:
  1. Generate a Jira token: https://id.atlassian.com/manage/api-tokens#
  2. Add this to ~/.netrc:
	machine yoururl.atlassian.net
	login yourjiraemail@company.com
	password <<Jira Token>>

Replacing <<Jira Token>> with the token you copied from step 1.

The library will read ~/.netrc, no further config needed!

Usage

Show Jira-specific logs from today

$ watson-jira logs --jira-only --tempo-format

Show exixting worklogs for a Jira issue

$ watson-jira logs tempo --issue JI-101

Upload logs from the last 3 days

$ watson-jira sync --from 3

Help

$ watson-jira --help

Will install TD-Watson https://github.com/TailorDev/Watson as one of it's dependencies, not surprisingly.

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

watson_jira-0.2.1.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

watson_jira-0.2.1-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

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