In our Jira environment (v4.3) we use the user properties feature to store metadata against a user. We'd like to be able to report on user's by these properties.
Can someone advise which table stores the user properties & what key it uses to link to the cwd_user table?
Thanks in advance.
I think this is what you are looking for:
select * from propertyentry pe, propertystring ps, external_entities ee where pe.ID = ps.ID and ee.ID = pe.ENTITY_ID and PROPERTY_KEY like 'jira.meta.%'
But you should of course rather use the public interface, something like:
PropertySet properties = userPropertyManager.getPropertySet(user);
Hope this helps,
Thanks for the heads up! I ended up modifying it to join the cwd_user table so I can view the users that it's applied to:
select pe.property_key, cu.user_name, cu.email_address from propertyentry pe JOIN cwd_user cu ON pe.entity_ID = cu.id where property_key LIKE "%jira.meta%" order by cu.email_address;
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
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot