I would like to ask you for help which would be spare a lot of time for us.
we are migrating many Jira instances week by week to our master Jira. The problem is that all the projects in the most old Jira instances use more than 100 custom fields: and there a plenty of custom fields that are used by only 1 projects. This would be not so big problem but there are more than 70 global custom fields, about which we cannot tell that a particular project whether use the custom field or not.
Most of the time when we ask the users of a to be migrating projects that what are the custom fields they need in the new instance they tell e.g. 15 custom fields. But when it's migrating, we get the surprise that the project cannot be migrated because 22 custom fields do not exist in the new Jira.
The reverse is also used to happen: when we create a custom field for a migrated project but it was never used in the old Jira.
So we really need a tool or script which we could run and result the custom fields that have existing values in a particular project.
Thanks in advance!
(sorry for the too much text)
got help from the legendary Atlassian support :) thanks guys!
extremely useful if your JIRA admins do not have permissions to access some projects:
select CF.cfname, P.pname, count(*) as issues from project P join jiraissue I on P.id = I.project join customfieldvalue CFV on I.id = CFV.issue join customfield CF on CFV.customfield = CF.id where CF.cfname = 'Epic Status' group by CF.cfname,P.pname
should work for PostgreSQL
select distinct(customfield.cfname) from customfieldvalue.customfield where customfieldvalue.project = your_project_id and customfield.id = customfieldvalue.customfieldThis should work for MySQL databases but not sure for others
select distinct(customfield.cfname) from customfieldvalue, customfield, jiraissue where customfieldvalue.issue=jiraissue.id and jiraissue.project = your_project_id and customfieldvalue.customfield = customfield.id
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.Read more
Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...
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