Hello everyone,
I've been dabbling with some SQL statements to try and pull data direct from the Oracle database. Most recently I got a list of all custom fields with a pretty basic query:
Select id, cfname, description FROM customfield ORDER BY cfname ASC
I got a display of all my custom fields, but I noticed that quite a few cfnames were repeated with different ids. For example:
ID CFName
10568 Contact Role
10567 Contact Role
10570 Contact Role
10569 Contact Role
I went back into JIRA, went to the Issues administration tab, and clicked on Custom Fields. Sure enough, I see four listings for Contact Role, and they are identical in every way.
Can anyone explain how this is possible? I now see this for quite a few custom fields.
You may click on the cog icon > Configure in order to check the selectable options in each of those custom fields.
If the options were the same for all of them, I'd say that you may delete all but one of them.
However, as all those fields are displayed simultaneously in the same window, it is weird that users hadn't pointed out this duplicity of fields, so maybe there's a reason fir all those fields to exist.
I'd recommend avoiding the creation of fields with exactly equal names, though.
Thanks Ignacio, I did check the configurations and every facet of these fields are the same. I have noticed that since I took over as the JIRA admin, none of the custom fields I have created are duplicated. However, I also do not use duplicate names. I suppose it's possible that the previous admin repeated himself, but that would be a horrible practice for any tracking system!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you have any plugin that would be creating fields? What would be creating fields called "Contact Role"?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The former JIRA admin would have created Contact Role (no longer with the company). There are no plugins that would create the field, it's a manual process, and fields are only created by the JIRA admin (currently that's me :)), and not without a request posted to our maintenance project and approval from a manager to add the field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I beliieve Ignacio has led me to the answer. I checked with the Product manager who deals with the projects associated with these duplicate fields. it appears that this project tracks external customer information, including multiple company contacts. It appears that the former JIRA admin re-used the same name for custom fields.
This will be a painful maintenance task. I have 363 custom fields, but 303 unique cfnames. Time to untangle the mess.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Wow... That is not good. :p
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.
I ran a SQL query against our Oracle database.
SELECT id, cfname, description, defaultvalue
FROM customfield
ORDER BY cfname ASC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for the query also is there any way to find duplicate custom fields used per projects (project specific duplicate custom fields).
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.