Poll problem - exact vote numbers needed


How can I acquire exact vote numbers in some votings? We are currently voting for trust level 4 people. People have 5 votes. There are 40 candidates, which I had to split into 2 polls because it only accepts 20 per poll. That is, 5 votes split between the two polls. This means that the total of votes differs per poll so the percentages do not correspond.

For exact resolving, I would need to acquire the exact numbers of votes in the polls. How is this done?

Elections Plugin
(Daniela) #2

There is a site settings for this. 20 is the default value. Search for poll maximum options

To solve your problem I think that you can write a proper query and use the Data Explorer plugin or delete the 2 topics, change the site setting and create only 1 poll with 40 options.


Oh thank you. This will fix the next vote. But people already started voting…

(Gerhard Schlager) #4

You can find the number of votes with the API. By visiting https://discourse.example.com/t/#{topic_id}/posts.json you’ll get the JSON data of all the posts within the topic. The #{topic_id} is the number you see in your browser’s URL bar when you visit a topic.

The API will return a large JSON object where you’ll find the number of votes for each option under the polls key.


Or you could use the Data Explorer Plugin if you want to find out even more about the polls. The query in Is it possible to see who voted in polls? should be a good starting point…

(Daniela) #5

@Silvanus for your next poll for promotions:


It also seems the number of votes is shown when “Show Results” is clicked… shame Of course this means I have to calculate single option votes manually, but with percentage and total number it’s doable.