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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,463,772
Community Members
 
Community Events
176
Community Groups

GET Bamboo project level variables via API

Edited

According to this documentation there is an endpoint to GET project variables:

https://developer.atlassian.com/server/bamboo/rest/api-group-api/#api-api-latest-project-projectkey-variables-get

 

But according to this documentation only POST is avaiable?
https://docs.atlassian.com/atlassian-bamboo/REST/8.0.4/#d2e271

 

I'm getting a 403 but able to hit other endpoints on the project like repositories.  Any ideas on what my issue is or if GET is even supported for this endpoint?

1 answer

1 accepted

1 vote
Answer accepted
Eduardo A Atlassian Team Dec 06, 2022

Hello @Toby_Matherly

The /project/<project_name>/variables endpoint was introduced in Bamboo 8.1  and supports GET normally:

# curl -s -u admin:admin --request GET \
--url 'https://bamboo819.mydomain.net/rest/api/latest/project/ABC/variables' \
-X GET \
--header 'Accept: application/json' | jq
[
{
"name": "Foo123",
"value": "123"
}
]

The Bamboo RESPI API documentation found on developer.atlassian.com will always revert to the latest API version. For specific versions, check docs.atlassian.com. The latter can be deprecated at any time.

Best regards,

Eduardo Alvarenga
Atlassian Support APAC

 

--please don't forget to Accept the answer if the reply is helpful-- 

Thank you @Eduardo A !  This is very helpful.  We are currently on 8.04 so that explains why the GET endpoint is still not available.

Like Steffen Opel _Utoolity_ likes this

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events