...
https://bitbucket.org/jira-admin-userscripts/jaus/raw/master/src/jaus-reorder-status.user.js
Jira Cloud | Jira DC 7.x | Jira DC 8.x |
---|---|---|
Use cases
This Userscript was meant for Admins to (less difficultly) manage the Statuses orders to they appear in the right order on Gadgets. If you didn’t know this, Gadgets order Statuses by the global order — Statuses on the top of the list appear on to the left and Statuses on the bottom appear to the right side.
...
After submitting the data by pressing
Status | ||
---|---|---|
|
If the status is asked to be moved beyond the top or the bottom of the list (before the 1st or in a position beyond the list length), the requests will be performed anyway but ignored by Jira. No message is returned to the Admin as this doesn’t impact the Userscript’s usage.
Note | ||||
---|---|---|---|---|
After some 5 seconds after you pressed
Version 1.1 fires the requests sequentially so it knows when the last finishes and only then reloads the page. It also clears the form so no browser reload prompt is triggered. |
Mechanics
JAUS Reorder Status is a request automation script that performs many parallel sequential HTTP requests to Jira at once, as if the Admin had performed them through the browser - only very quickly and simultaneously (it’s a request to a web page, not a REST API endpoint).
In general terms, the Userscript:
Tries to find the Jira create button on top (when in the ViewStatuses page). If it finds it, it injects the JAUS Context Button.
When the JAUS button’s pressed, it injects a light box on top of the screen that can be closed anytime.
The Admin is requested to inform the Status Id, the direction (up or down) and the number of positions (“N”) the Status should be moved.
If the Admin presses the Reorder button in the light box, JAUS fires N requests like the example below to Jira, waits 5 seconds and reloads the page .after the last one’s returned:
Code Block |
---|
<BASE-JIRA-URL>/secure/admin/StatusUp.jspa?up=<Status Id> or <BASE-JIRA-URL>/secure/admin/StatusDown.jspa?down=<Status Id> |
...
Please select the Component jaus-reorder-status
.
Roadmap
...
JAUS Reorder Status may be improved to make the light box more pleasant to the eyes. It may also be improved to better handle the background requests and delay to the page reload (maybe not even requiring the User’s confirmation).
& known issues
If you’d like to open a bug or suggest an improvement or new feature to JAUS Reorder Status, please do so through the JAUS Help Portal, selecting the component jaus-reorder-status
:
Known issues
Please submit them through JAUS Help Portal!status
.
Jira Legacy | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
Jira feature request
Please vote, watch and comment on these feature requests!
...