Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How do I get list of Bamboo projects and plans with their users using MS SQL query Edited

How do I get list of Bamboo projects and plans with their users using MS SQL  query

1 answer

1 accepted

0 votes
Answer accepted

Hi @Nirmalkumar Shete

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.

Thank you Daniel, this is what I was looking for..

I'm glad it was helpful! =]

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 7.1 is here and is packed with value!

I'm happy to announce that Bamboo 7.1 has been released and it’s overflowing with awesome new features. Top-voted issues First and foremost, a bunch of JAC top voted issues has been delivered - y...

684 views 1 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you