Added by Kush Suryavanshi almost 9 years ago
In projects_controller.rb, one can get open issues through -
@open_issues_by_tracker = Issue.visible.open.where(cond).group(:tracker).count
I thought this query will return the custom fields of issues as well. So, I did an inspect -
@openIssueCondition = Issue.visible.open.where(cond)
logger.info("Condition is #{@openIssueCondition1.inspect}")
But, I don't get any custom fields back.
1) Is there any way way to get those values? I need to use them in project overview.
2) QueriesController\IssueQuery can use the custom fields - do I need to use it instead? If so, any idea how?
Thanks
Kush
I was able to achieve this using IssueQuery.