The JQL query methods do not seem to support this particular query that I need, after my company renamed all my JIRA tasks (causing my separate change management system to be out of sync with the JIRA issues):
select oldstring, newstring from changeitem where oldstring like ‘IBMI%’ and newstring like ‘OC%’