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,559,582
Community Members
 
Community Events
184
Community Groups

Add a comment to bamboo build

Edited

Problem

I am trying to add a comment to a build in bamboo.

via - https://docs.atlassian.com/atlassian-bamboo/REST/8.2.1/#d2e1674

but the document json also refers to xml schema

need to know how to post a comment with a rest request

Note:

I am using personal access token , I have verified that this token is working for the get comments and retrives the data successfully

1 answer

1 accepted

1 vote
Answer accepted
Eduardo Alvarenga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 24, 2022 • edited

Hey @Bharathan Kumaran

Try the following syntax:

curl -s -k -u user:pass -H 'Content-Type: application/json' -X POST -d '{ "content": "Test567" }' "https://<bamboo_url>/rest/api/latest/result/PROJ-PLAN-BUILDNUM/comment"

To see the comments:

curl -s -k -u user:pass -H 'Accept: application/json' -X GET "https://<bamboo_url>/rest/api/latest/result/PROJ-PLAN-BUILDNUM/comment?expand=comments.comment"

 

Regards,

Eduardo Alvarenga
Atlassian Support APAC

Eduardo Alvarenga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Apr 25, 2022

Hello @Bharathan Kumaran,

The Bamboo development team is working internally to refactor the Bamboo REST docs to a new Swagger interface. Please keep an eye on https://developer.atlassian.com/ for new changes.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events