How can I make a MySQL query to fetch some data from the database and display it in issue fields?
Can I make a jira filter with that SQL query?
For e.g. There is a table in our company database which has a column in it, I want to get that column and make it appear in jira issues?
Thanks in advance.
sD
Hi,
You cannot directly make SQL queries to Database within JIRA using JQL filters.
You can look into Power Database Fields Plugin and nFeed Plugin to connect to a DB, fetch data from there and display into a custom field.
For e.g. The Power Database Field plugin gives you additional customfields and one of them is Database Custom Field. You can create a customfield of this type, and configure it to your db and fetch relevant data.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need code to do that. Something to read your data and display it as a field.
There are "database fields" add-ons in the marketplace which allow you to draw their options from a database and to display SQL queries too, it's worth a look at those, rather than writing your own.
A better option may be to use something like ScriptRunner to provide a "scripted field" that can pull the data you need, if it's read only.
Translating a SQL query into a Jira filter is a non-starter. The database behind Jira is a data store and is not designed for anything like reporting. But if you implement your display as a field, then yes, you can search that in JQL queries.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Power Database Fields looks like a free addon so I probably will think about using that.
ScriptRun looks good too but Its quite expensive for just one operation :(
I have to actually connect to an external Database (Not JIRA DB). So i think i would need addon for it.
Thankyou for your help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
UbxSD, have you find the free solution ? I'm facing the same problem.
Thank you for your help ! ;)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.