Merge pull request #7735 from mbauskar/develop

[minor] fetched tickets to closed using sql instead of get_all