You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
How do I get list of Bamboo projects and plans with their users using MS SQL query
From your question is not clear what do you mean by "their users", but I will consider you are talking about what users or groups have permissions on those plan/projects.
This query will give you the build projects/plans:
SELECT
P.PROJECT_ID,
P.PROJECT_KEY,
P.TITLE,
B.BUILD_ID,
B.FULL_KEY,
B.TITLE
FROM
PROJECT P
JOIN
BUILD B
ON P.PROJECT_ID=B.PROJECT_ID
WHERE
BUILD_TYPE='CHAIN' ORDER BY FULL_KEY
This one will give you the deployment projects/environments:
SELECT
DP.DEPLOYMENT_PROJECT_ID,
DP.NAME,
DE.ENVIRONMENT_ID,
DE.NAME,
DP.PLAN_KEY
FROM
DEPLOYMENT_PROJECT DP
JOIN
DEPLOYMENT_ENVIRONMENT DE
ON DP.DEPLOYMENT_PROJECT_ID=DE.PACKAGE_DEFINITION_ID
The users and groups with permissions for them you can get from this page:
I hope that will allow you to retrieve the information you need from the Bamboo DB.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm glad it was helpful! =]
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.