We are running into an issue with bugs in sprints. Lets say a developer reaches "dev complete" on a story and hands off to QA, we want to track all the defects that QA finds and have the developer fix them before we launch. If we add the defects to sprint, JIRA treats it as scope creep. It also makes the burndown chart go in the wrong direction as developers and testers add tasks to the bug.
My question is, what is the guidance on tracking defects created in a sprint? At this point we are considering having to track the defects outside of the sprint and link the defect to the story. This is a pain in the ass for the developers because now they have to look at the board and a second board for defects. It also makes reporting a pain in the ass. Is there a clean way to accommodate this Jira?
Before someone suggests filters, that is all well and good except for the fact that a lot of the JIRA dashboard gadgets and canned reports defeat the use of filtering and I find I'm back to punching data out of JIRA to google docs to generate sprint metrics for management which leaves me wondering why don't I just use trello if I am going to have to each this much pain. This can't be this rare of an occurrence. We are about to light up test rail tied into our test automation suite and have test rail be creating defects in JIRA as test cases fail so the issue is only going to get worse.
Anyone have any suggestions?