Every Monday, writes a Notion page of the week's finished and in-progress Jira issues, counted by status and by person.
UsesJira
Notion
Write a weekly Jira progress page in Notion
notionDatabaseId to blank.Set notionDatabaseId to blank.notionTitleProperty to Name.Set notionTitleProperty to Name.jiraProjectKey to blank.Set jiraProjectKey to blank.lookbackDays to 7.Set lookbackDays to 7.maxIssues to 1000.Set maxIssues to 1000.highlightLimit to 15.Set highlightLimit to 15.notionDatabaseId and save it as databaseId.Extract the first match from notionDatabaseId and save it as databaseId.databaseId is emptyIf databaseId is emptyYes
No
No steps
projectFilter to blank.Set projectFilter to blank.jiraProjectKey isn't emptyIf jiraProjectKey isn't emptyYes
projectFilter to project = jiraProjectKey AND .Change projectFilter to project = jiraProjectKey AND .No
No steps
window to -lookbackDaysd.Set window to -lookbackDaysd.issues to an empty list.Set issues to an empty list.nextPage to blank.Set nextPage to blank.morePages to true.Set morePages to true.morePages is yes and the length of issues is less than maxIssues:While morePages is yes and the length of issues is less than maxIssues:window) OR (statusCategory != Done AND updated >= window)) ORDER BY updated DESC'. Save it as search.Find issues matching '@projectFilter((statusCategory = Done AND resolved >= window) OR (statusCategory != Done AND updated >= window)) ORDER BY updated DESC'. Save it as search.issues and search.issues into one list and save it as issues.Combine issues and search.issues into one list and save it as issues.search.next_page_token is empty or search.issues is emptyIf search.next_page_token is empty or search.issues is emptyYes
morePages to false.Change morePages to false.No
nextPage to search.next_page_token.Change nextPage to search.next_page_token.weekEnding.Make today's date readable as “November 2, 2026” and save it as weekEnding.issues, weekEnding, lookbackDays, highlightLimit, and moreThanCounted and save it as overview.Run Python code on issues, weekEnding, lookbackDays, highlightLimit, and moreThanCounted and save it as overview.weekEnding' in databaseId. Save it as page.Create the page 'Weekly Jira overview — weekEnding' in databaseId. Save it as page.page.Show in the output: page.