Best way of searching JIRA change history

Hello guys,

I’ve to get data from issues transferred among projects during an interval of time.

What’s the better method to do this in my Java plugin?

Keeping in mind performance, I think that executing SQL query directly is a bad idea (tables changegroup and changeitem).

Somebody have the correct way to do this?

Any sample piece of code will be appreciated.

Thanks in advance.

Mário dos Santos [TOTVS]