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.
You cannot directly make SQL queries to Database within JIRA using JQL filters.
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 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.
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
We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs