Skip to content

Native Jira worklogs for connections without Tempo #113

Closed

Description

@f3rdy

Context

Some connections don't have Tempo installed (Tempo: Disabled). Currently, budjira tempo log and budjira tempo worklogs only work via the Tempo API — there's no way to log or read native Jira worklogs through budjira.

Request

Support native Jira worklog operations as a fallback (or explicit mode) for connections without Tempo:

  • budjira tempo log ISSUE TIME --comment "..." --connection <no-tempo-conn> should fall back to POST /rest/api/3/issue/{key}/worklog
  • budjira tempo worklogs --connection <no-tempo-conn> should fall back to reading native Jira worklogs via GET /rest/api/3/issue/{key}/worklog (or the issue search + worklog endpoint)

Use Case

A connection to a customer Jira (Cloud Free/Standard) where Tempo is not installed and not justified cost-wise. Time tracking still needs to happen — native Jira worklogs are sufficient (time spent, comment, date, author). The existing budjira tempo interface should work transparently regardless of whether Tempo is available on the backend.

Suggested Behavior

  • Detect Tempo: Disabled on the connection → use native Jira REST API
  • Or: explicit flag on the connection config (e.g., tempo_mode: native)
  • Write: POST /rest/api/3/issue/{issueIdOrKey}/worklog with timeSpentSeconds, comment, started
  • Read: GET /rest/api/3/issue/{issueIdOrKey}/worklog or user-scoped search
  • Delete/Update: corresponding native endpoints

Constraints

  • Native Jira worklogs don't have Tempo accounts, billing keys, or attributes — those fields should be silently ignored
  • --no-epic and --format json should still work
  • Author filtering (for multi-user instances) should default to currentUser()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions