How to find User Properties in Jira database?

Despite there are two similar answers to the question:

https://answers.atlassian.com/questions/151905/what-database-table-keep-user-properties

https://answers.atlassian.com/questions/73332/does-user-property-value-store-in-database

I still cannot find how external_entities.name is linked to the propertyentry table.

There is several external_entities.name that have user properties. But their external_entities.id has no corresponding propertyentry.entity_id.

Jira version: 5.2.10

1 answer

1 accepted

Hi Ivan, with new versions of JIRA (6.x) you can use the following query:

select *
  from propertyentry pe,
    propertystring ps,
    app_user au
  where pe.ID = ps.ID
    and au.ID = pe.ENTITY_ID
    and PROPERTY_KEY like 'jira.meta.%'

With old versions you can use the following query:

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.%'

I hope it helps.

Cheers

Hi Tiago,

Thank you a lot for the advice, the script for Jira 6 works for me.

Now it's clear why the 2nd script mentioned in the above links didn't work - I confused my Jira version (it's 6.2)

BR,

Ivan

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

93 views 0 1
Join discussion

Atlassian User Groups

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!

Find my local user group

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

Groups near you