This script does the iteration you're looking for. I'm not really doing anything with the results, so if you run this in Script Editor or something, the result will just be the name of the last resource.
I might imagine that some of your tasks will have a bug ticket number in custom data that you can use to match things up. Is this enough to get you started?
Code:
tell application "OmniPlan"
tell front document
repeat with MyTask in every task
name of MyTask
duration of MyTask
custom data of MyTask
end repeat
repeat with MyResource in every resource
name of MyResource
end repeat
end tell
end tell