-
Suggestion
-
Resolution: Won't Fix
-
None
NOTE: This suggestion is for JIRA Cloud. Using JIRA Server? See the corresponding suggestion.
It would be great, and easy to implement, and rest function that could be used by jira-administrators to run SQL queries (SELECTs) directly on jira database.
This could be used to gather data from JIRA database in many use-cases where current REST api does not support it.
Considering that this is read-only and that the JIRA database structure is quite stable having this makes a lot of sense.
This could also be used to implement very interesting stats just with JavaScript.
- is related to
-
JRASERVER-36046 Provide REST API for running SQL queries directly on the database
- Closed
- relates to
-
JRACLOUD-36045 Allow retrieval of all saved filters using REST api
- Gathering Interest
I am wondering why this would be as a security hole, as long is properly implemented (not allowing other actions than select). Clearly passwords cannot be exposed because they are not in plain text and obviously it would be limited to a certain group of users, probably jira administrators.
Now regarding the instability of the database schema, based on the experience of Jira 3.x-6.x I would say that is quite stable and there is no much difference between the number of changes in APIs (SOAP / REST) and the database schema.
Anyway, you have a point regarding possibility to implement it as a plugin.
The only thing that I do not like is that by closing the ticket you prevent people from voting on it.