Skip to content
Menu
HelpSum Jira worklogs in a date range with worklogDate

Sum Jira worklogs in a date range with worklogDate

Checked against Atlassian’s JQL and REST API documentation on 12 October 2026.

A common question about Jira time: one activity has worklogs on 1 May (2h), 15 June (1h), 18 June (3h) and 2 July (1h), and the asker wants June’s hours only, 4h: “Quiero sumar solo las horas trabajadas en Junio” (Community, August 2026). JQL’s worklogDate is where most people start. This page says what it finds across your spaces, where it stops, how to get only the period’s hours without an app, then what Logline does.

What worklogDate finds

worklogDate >= 2026-06-01 AND worklogDate <= 2026-06-30

finds every work item you can browse, in every space, with at least one worklog in June. Add project in (ACME, NWND) to keep to some spaces, or worklogAuthor in membersOf("web-team") to keep to a team. Jira’s date functions work too: worklogDate >= startOfMonth(-1) AND worklogDate < startOfMonth() means last month on whatever day it runs, so a saved filter moves with the calendar (JQL fields).

It returns work items. The activity above is found, and its Time spent says 7h: all four worklogs.

Where it stops

  • Each clause can match a different worklog. The fields search for work items, so worklogAuthor = currentUser() AND worklogDate >= startOfWeek() also finds a work item you logged on last year if a colleague logged on it this week.
  • The most recent 1,000 worklogs. Atlassian’s JQL documentation says that if a work item has more than 1,000 worklogs, JQL searches only the most recent ones.
  • The hours beside each work item are all-time. Time spent, on screen and in the export, is the work item’s total from every date and every author. The all-fields export carries every worklog in its Log Work columns, and Export Jira worklogs to Excel shows how to split them into rows.
  • The day depends on a time zone. Jira reads the dates in a search in your own time zone, so a worklog logged late in the evening in New York can fall in the next month for a colleague in Riga. Two people can get different lists at a month’s edges.

Only the period’s hours, without an app

Both routes need someone who can run a script with an API token:

  • Work item by work item: for each work item the search found, GET /rest/api/3/issue/{issueIdOrKey}/worklog with startedAfter and startedBefore, in Unix milliseconds, returns only the worklogs started in that window. For the activity above that is the two June worklogs, 1h and 3h.
  • Across the whole site: GET /rest/api/3/worklog/updated?since= lists the IDs of the worklogs updated since a moment, 1,000 to a page, and POST /rest/api/3/worklog/list returns up to 1,000 worklogs by ID. Start from a moment before the period, then keep the worklogs whose started falls inside it.

Both return only the worklogs the caller may see (Atlassian).

With Logline

Logline is our app. It reads the worklogs and keeps the ones inside the period:

Jira with its left sidebar open on Apps, Logline picked under Your apps. Beside it, the Logline page: its scope, the spaces ACME, INT and NWND, Whose time, the period 1 Sep to 30 Sep, Show report, the Save, Reports, Copy link and Download buttons, 447 worklogs, the Timesheet tab with Rows Space then Work item, and the first rows of the grid: the Total row, then Acme Website and its work items.
Apps › Logline: Jira’s sidebar open on Apps with Logline picked, and the report beside it
  1. Open Apps › Logline and pick a period under Period: a rolling period such as Last month, or a Custom range of up to 400 days.
  2. On the scope row, the scope is every space you can see, chosen spaces, a saved filter or JQL. The scope picks the work items; the period decides which of their worklogs count.
  3. Each worklog is checked against the period and the people one by one, so the author and the date belong to the same worklog. The activity above shows 4h in June.

How it counts:

  • A worklog counts on the day it started, in the viewer’s time zone or in each author’s, and every report names the time zone under its total (Periods, days and time zones).
  • A report reads up to 10,000 work items and 50,000 worklogs; above that it says so and asks for a shorter period or a smaller scope, rather than showing a partial total.
  • Logline finds the work items with the same worklogDate search, so Jira’s 1,000-worklog limit applies to it too, on a work item with that many.

More on the Logline home page.

The top of a Logline report: Scope set to Spaces with ACME, INT and NWND chosen, Whose time set to Everyone, Period set to 1 Sep – 30 Sep with its arrows, Show report, then Save, Reports, Copy link and Download, all on one line; under it one grey line, “1 Sep – 30 Sep · 447 worklogs · Counted in America/New_York”, with How this is counted and Recalculate.
A report open for editing: what it reads, and its columns and counting.

Try it on your own worklogs

Free for up to 10 users, then billed per user by Atlassian.