Bulk Option Insert
If you came here through a direct link, you may want to check the main JAUS page first!
JAUS Bulk Option Insert is a Userscript that bulk inserts hard-coded options on Select List (single and multiple choices) fields when triggered during the custom fieldās creation.
Download/installation URL:
https://bitbucket.org/jira-admin-userscripts/jaus/raw/master/src/jaus-bulk-option-insert.user.js
Use cases
This Userscript was meant for Admins that need to create a Select List (single or multiple choice) with many values. The Admin must edit the Userscript to fill the desired values:
// Change this list to the desired values! (only works on custom field creation)
const jausListBulkOptionInsert = ["Option A", "Option B", "Option C", "Option D", "Option E", "Option F", "...", "Option Z"];
Also remember the Userscript with your changes will get overwritten when a new versionās released.
Scope
Currently it only supports the āViewCustomFieldsā admin page, which is from where new custom fields are created:
It also only supports the creation of Select List (single choice) and Select List (multiple choices), both on Cloud and DC/Server.
This Userscript shows the JAUS Context Button already in the āViewCustomFieldsā page, but itās only usable through the JAUS Context Button | Access Key āuā when on the create box for Select Lists (single and multiple).
Mechanics
JAUS Bulk Option Insert is very little intrusive, basically it:
Tries to find the necessary elements in the page (Jira create button on the top and the check boxes)
If it finds, it injects the JAUS Context Button
Upon pressing the access key āuā (because the Context Buttonās blurred), it iterates over the hard-coded options list and fills the āOptionsā field and clicks the āAddā button each time.
The Admin still needs to create the field by clicking on the āCreateā button. JAUS doesnāt submit any data to Jira automatically.
Cancelling the custom field creation discards everything performed by JAUS.
Repository
JAUS Bulk Option Insertās source code is hosted in BitBucket:
https://bitbucket.org/jira-admin-userscripts/jaus/src/master/src/jaus-bulk-option-insert.js
Notice that to download/install we advise the /raw/
URL.
Authorship
JAUS Bulk Option Insert was suggested by Daiane Conte, SĆ£o Paulo Atlassian Community Leader (Linkedin profile), and implemented by Rodrigo Martinez (Linkedin profile).
It's licensed under Creative Commons Attribution-ShareAlike 4.0 International License.
Support
If you have questions, any problem or need instructions on this Userscriptās usage, please open a request in the JAUS Help Portal.
Please select the Component jaus-bulk-option-insert
.
Roadmap
JAUS Bulk Option Insert may be expanded to work on the custom field edition screen.
If youād like to suggest an improvement or new feature to JAUS Bulk Option Insert, please do so through JAUS Help Portal, selecting the component jaus-bulk-option-insertl
.
Known issues
Ā