Hi,
I am trying to pull issue history only within certain range.
Currently using jira-python package, but if this is possible to do with requests and REST API it would be acceptable.
Currently I have the following:
updated_issues = auth_jira.search_issues(f'project in {projects} and updated >= "-1h"', expand=['changelog'])The above would fetch all issues that had been updated in the past 1 hour.
for issue in updated_issues:
for history in issue.changelog.histories:
for item in history.items:
if item.field == 'status':
print('status')
print(f'Date: {history.created}; From: {item.fromString}; To: {item.toString}')
However, the problem is that changelog.histories contains all changelogs for the particular issue as opposed to just the changes in the past hour.
Is there a filter I can apply? Alternatively a JQL query to target the changelogs directly would also probably work.
Any help would be highly appreciated!