does somebody know where in database JIRA keeps this user-properties?
It's a combination of
external_entities on (user_name = external_entities.name)
propertyentry on (external_entities.id = propertyentry .entity_id)
propertystring on (propertyentry .id = propertystring .id)
WHERE
propertyentry.entity_name = 'ExternalEntity'
propertyentry.property_key = 'jira.meta.xxx'
xxx is the property name and propertystring.propertyvalue is the value
Henning
thanks Henning
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It looks like propertyentry.entity_id does not relate to external_entities.id any more, does it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, in JIRA 6 one shall use app_user instead of external_entities
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For JIRA 6, it is changed
SELECT e.user_key, t.property_key, s.propertyvalue as FieldValue FROM app_user e JOIN propertyentry t ON e.ID = t.entity_id JOIN propertystring s ON t.ID = s.ID where t.property_key like 'jira.meta%';
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you very much :)
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.
SQL:
select ps.propertyvalue from propertystring ps, external_entities ee, propertyentry pe where ee.name(+) = '<USERNAME HERE>' and pe.property_key(+) = 'jira.meta.' || '<PROPERTY KEY HERE>' and ee.entitytype(+) = 'com.atlassian.jira.user.OfbizExternalEntityStore' and ee.id = pe.entity_id(+) and pe.id = ps.id(+);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can retrive property by programatically in future, you can use below code.
PropertySet properties;
properties=userPropertyManager.getPropertySet("USERNAME");
String x=properties.getString("jira.meta.x");
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.