my basic metric, in general terms, is like:
( feature_complexity_points - bugs_reported ) / time_spent
time_spent and bugs_reported are collected from the JIRA.tricky part is defining the feature_complexity_points used ( function points ? cosmic ? business complexity ? story points ? )