We may have a Task and Issue within the same project, or we may create two different projects, one for Task and another for Issue. It is advisable to create a dedicated project for issues when your issue management team is responsible for solving the issues coming from a different project.
A similar project can be used where your development team is responsible for fixing the issues during the project or after the project completion.
Choose your way of managing the issues depending on your issue management policy.