Hi,
I would like to know whether its possible to query the Database for the following two scenarios:
Regards,
Jan
Hi @Silviu Burcea,
thank you, it works. But the next question, after the result table is 1.400.000 rows long, is how can I sum up the result for every customfield, like:
| CUSTOMFIELD_ID | CUSTOMFIELD_NAME | AMOUNT OF ENTRIES IN ISSUES |
| customfield_10001 | ABC | 12356 |
| customfield_10007 | Epic Link | 30000 |
| customfield_10008 | Sprint | 30000 |
Regards,
Jan
select id "Customfield ID", cfname "Customfield Name", count(*) "Number of Issues" from customfield
group by id, cfname;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Silviu,
thanks for your answer. Maybe I'm too blind. What do you mean with "set up a new database source" ... "in sql routine"? Although everything is installed, I can't find the "sql routine". Do you anything like an documentation link (with pictures ) for me?
Thanks & Regards,
Jan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here it is: https://confluence.kepler-rominfo.com/display/DBCF/Data+Source+Configuration . You will need a Resource pointing to JIRA DB.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jan,
This is possible and you don't really need DBCF(unless you want to show this information over and over again, on every issue using DataTable CF). You only need Kepler Custom Fields(free, just like DBCF) and the sql routine.
You will need to set up a new datasource to access the JIRA database, it will be used as JNDI name in the sql routine or in the DBCF CF configuration. And now, the interesting part, the sql script:
select CFV.* , '|' as sep , CF.* , '|' as sep , P.PKey || '-' || JI.IssueNum as IssueKey from CustomFieldValue CFV inner join CustomField CF on CFV.CustomField = CF.Id inner join JiraIssue JI on CFV.Issue = JI.Id inner join Project P on JI.Project = P.Id
The CFV table contains only the rows with values for the CFs. The CF table contains the relevant information about the CF and finally, the JI and P tables will help you to get the issue key. I have used the || operator to concatenate some columns, you may need the concat function instead, depending on your SQL server type(MSSQL, MySQL, etc.).
You will probably want to select only the relevant columns from CFV and CF table, I have selected all the columns to have an overview on these tables.
Best regards,
Silviu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.