Count number of checkboxes

Post about your customizations to share with others.

Moderators: Developer, Contributor

Count number of checkboxes

Postby stanswx » Feb 07, 2011 12:09 pm

I have a custom field called Clients that is a checkbox field. I use it to show which of our clients are reporting a bug or feature request. What I want to be able to do is create a column that counts how many clients are checked off for each bug. Then I would be able to sort the list to show the highest # of clients that the bug/feature is affecting. I'm familiar with the count command in PHP, but not sure how to tie it to my custom_Clients custom field. Any ideas? Running v1.2.4. Thanks!
stanswx
 
Posts: 6
Joined: Feb 25, 2007 9:14 pm
Location: Champaign, IL

Re: Count number of checkboxes

Postby atrol » Feb 07, 2011 3:40 pm

First you have to look at table mantis_custom_field_table for the id of your custom field.
You get the values by searching for this id in table mantis_custom_field_string_table column field_id
Please use Search before posting and read the Manual
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
 
Posts: 3646
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Count number of checkboxes

Postby fotoforward » May 12, 2011 4:23 am

I'm curious in how to implement this with the relation variable.

On the view_all_bugs page i want to add a column with the number of relations of an issue per row.
Any thoughts?
fotoforward
 
Posts: 2
Joined: May 10, 2011 6:25 am


Return to Customizations

Who is online

Users browsing this forum: No registered users and 0 guests

cron