Bulk Option Insert

If you came here through a direct link, you may want to check the main https://jaus.atlassian.net/wiki/spaces/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.

How Bulk Option Insert looks in Violentmonkey once installed.
How Bulk Option Insert looks in Violentmonkey once installed.

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:

ViewCustomFields page with the JAUS Context Button and options bulk inserted.
ViewCustomFields page with the JAUS Context Button and options bulk inserted.

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 https://jaus.atlassian.net/wiki/spaces/JAUS/pages/33250 already in the “ViewCustomFields” page, but it’s only usable through the https://jaus.atlassian.net/wiki/spaces/JAUS/pages/33250/JAUS+Context+Button#Access-Key-%E2%80%9Cu%E2%80%9D when on the create box for Select Lists (single and multiple).

Mechanics

JAUS Bulk Option Insert is very little intrusive, basically it:

  1. Tries to find the necessary elements in the page (Jira create button on the top and the check boxes)

  2. If it finds, it injects the JAUS Context Button

  3. 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