Skip to content

Instantly share code, notes, and snippets.

@suvene
Created February 26, 2013 13:07
Show Gist options
  • Save suvene/5038282 to your computer and use it in GitHub Desktop.
Save suvene/5038282 to your computer and use it in GitHub Desktop.
query for redmine issue
select id, substr(subject, 1, 15), category_id, project_id, created_on from issues order by updated_on;
select issues.id, substr(subject, 1, 15), category_id, project_id, created_on
FROM `issues` INNER JOIN issue_statuses ist on ist.id = issues.status_id WHERE (1 = 1
and (issues.assigned_to_id = 3
and issues.start_date < '2013-02-11 00:00:00'
and ist.is_closed != 1))
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment