I am attempting to get all open ticket and tickets that have closed within the last year. I have tried a few different variations of this but have not been successful to even just get closed tickets within the last year.
from datetime import datetime as dt,timedelta as td
issues = redmine.issue.filter(project_id='production',
tracker_id='39',
closed_on= '><dt.today()-td(days=365)|dt.today())