New function added to retrieve bug history via API.