Where is Green Hopper Parent version Stored

I would like to query the database directly for adding Versions and associating a parent version to them.

I found the version table but it does not contain the Greenhopper Parent Hierachy information.

Can anyone point me to where this parent hierachy is stored.

Thanks

David

1 answer

0 votes
Dieter Community Champion Nov 06, 2011

The version information is stored as part of the GreenHopper configuration in table ospropertytext. It is stored in attribute propertyvalue which is build in XML syntax for readbility and easy deserialization. Search for the string VERSION_MATCHUP and the map that follow contains the pairs of child and parent ids. Each id is the id of a version in table projectversion. So in this case the version with id 15414 is a child of version with id 15412

<entry>
    <string>VERSION_MATCHUP</string>
    <map>
      <entry>
        <long>15414</long>
        <long>15412</long>
      </entry>
      <entry>
        <long>15415</long>
        <long>15412</long>
      </entry>
    </map>
  </entry>

the table ospropertytext has the same ids as table ospropertyentry. ospropertyentry attribute entity_id is the id of the project.

So it's pretty easy to get the configurations of a project using this query

select propertyvalue from propertyentry,project,propertytext where entity_name like '%GreenHopper%' and entity_id = project.id and propertyentry.id = propertytext.id and project.id=<project id>;

Dieter Community Champion Nov 06, 2011

also check this

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

696 views 5 16
Read article

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