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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,870 views 12 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot