API: filter issues, merge requests by state (open | closed)

Created by: dzaporozhets