Import a contest
Before starting the importing process, you must know which data file you are using. The contest importer only accepts .json files, and you can either create your own file (using our example files as a starting point) or you can use the candidates file from the Candidacy system - read more on that process in the section Import a Candidacy file.
Go to the “Contests” tab on the left-hand menu.
Click “Import.”
Click
to open a new contest importer.
Click “Choose file.” Select the following example .json file: (you may also use this file as a starting point for your own). Alternatively, refer to the section on creating a contest importer file to create your own file for use in the contest importer.
Once you select the file, its data string will appear in the overview box, as shown below:
Click
.
You now need to map all of the data in the file. Start by mapping each ballot one at a time. You can do this by clicking on “Ballot A” to the left or under “Contest data” to the right:
Do the mappings as follows:
Click
and repeat the previous steps for the remaining ballots. Please note that contest mappings can only be done before importing!
Once all of your contest data has been mapped, you are now ready to import.
Click “Import”at the bottom of your screen, after which a progress bar will show how far along the import is. Once the import is complete, the system will show a green “Data successfully imported!” message.
Return to the “Contests” tab to see all of your imported contests
NOTE! Remember to configure each contest’s advanced settings to set up the voting rules. Read more on these settings here: Contest Advanced settings & Create a contest.
Click “Choose file.” Select the following example .json file: (you may also use this file as a starting point for your own contest importer). Alternatively, refer to the section on creating a contest importer file to learn how to create your own file.
Once you select the file, its data string will appear in the overview box, as shown below:
Click
.
You now need to map all of the data in the file. Start by mapping one ballot at a time. You can do this by clicking on “Contest Name” to the left or under “Contest data” to the right:
Complete the mapping in the below manner:
Under “Contest options,” you will see “Parties” and “Profiles.”
Start by clicking on “Parties.” The following items you will map correspond to those that are included in the .json file.
Under “Title,” select “name” from the dropdown menu, if it isn’t already selected.
Under “Description,” select “description” from the dropdown menu, if it isn’t already selected.
Skip “Image.”
Under “Url,” select “url” from the dropdown menu, if it isn’t already selected.
Skip “Reference.”
Skip “Exclusive,” “Selectable,” “Randomize children,” and “Accent color.” To read more about these options, go to the section entitled “Contest options mapping.”
Now click on “Profiles.” The following items you will map also correspond to those which are included in the .json file.
Under “Title,” select “name” from the dropdown menu, if it isn’t already selected.
Under “Description,” select “description” from the dropdown menu, if it isn’t already selected.
Under “Image,” select “image” from the dropdown menu, if it isn’t already selected.
Under “Url,” select “url” from the dropdown menu, if it isn’t already selected.
Under “Reference,” select “reference” from the dropdown menu if it isn’t already selected.
Skip “Exclusive,” “Selectable,” “Randomize children,” and “Accent color.”
Click
. Please note that contest mappings can only be done before importing!
Once all contest data has been mapped, you are now ready to import.
Click “Import” at the bottom of your screen and a progress bar will indicate how far along the import is. Once the import is complete, the system will show a green “Data successfully imported!” message.
Return to the “Contests” tab to see all of your imported contests.
NOTE! Remember to configure each contest’s advanced settings to setup the voting rules. Read more on these settings here: Contest Advanced settings & Create a contest.
If you choose to upload a Candidacy file, you need to connect the election to the specific Candidacy event. You can do this by doing the following:
Go to the “Configuration” tab on the election event.
Under “Candidacy,” click on the “Candidacy” item.
Select the specific Candidacy event (whose data was previously exported) which you wish to import into the contest importer.
You are now ready to import. Follow these instructions:
Go to “Contests” tab from the left-hand menu.
Click “Import.”
Click
and a new contest importer will open
Below, you can see the different steps to import a contest file extracted from Candidacy.
Click “Choose file.” Select the following example .json file: . Alternatively, read how to download your own file here.
Once you select the file, its data string will appear in the overview box, as shown below:
Click
.
You now need to map all of the data in the file. In this case, there is only one contest in the file. Start by mapping it. You can do this by clicking on “Pre Election 2024” or under “Contest data,” as shown below: