Retrieve Jira Advanced Roadmap Plan Owners from the database
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
Sometimes you might need to retrieve the Plan Owners for Advanced Roadmaps plans, for example when they are read-only and administrators are unable to change their permissions and users don't know who the owner is.
Environment
Jira with Advanced Roadmaps installed.
Solution
You can use the following SQL Query, which should be executed in your database, to retrieve Plan Owners for all plans on the instance:
This query was written for Postgres and might require adjustments to work on different database servers
select p1."ID"
,p1."TITLE"
, p2."HOLDER_KEY" as "user/group"
, p2."PERMISSION"
from "AO_D9132D_PLAN" p1,
"AO_D9132D_PERMISSIONS" p2
where p1."ID"=p2."PLAN_ID" order by "TITLE"