ANT Script for Failed Test cases

Dear All,
Need help from you people

Need ANT script to Create Jira Bug for Failed Tests from Bamboo Build.
Please help if any one know .

Thanks in andvance.

Regards,
Krishna

Take a look at the Ant Retry task.