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
Community Members
Community Events
Community Groups

What are the variables I send through webhooks when using the "agent online" system notification


There are "System Notifications" for the events "Agent Online" and "Agent Offline". We can choose Webhooks as "Recipient Type" and then select a Webhook Template.

I'm not finding anywhere which variables I can send in the body as a POST request when using a Webhook Template. For instance I'm interested in the agent name. I'm mean, if the agent is online, then I would like to know at least it's name. : )

Has anyone been able to achieve this somehow?


ps. I was able to set a custom capability on the agent:

"" = "${HOSTNAME}"

Then I've created a template like:

"uuid" : "${bamboo.webhook.uuid}",
"hostname" : "${}"

I get a "variable not found" in the logs.

1 answer

Looks like the webhook does not get the capabilities from the agent but only the local ones(from Bamboo Host/Server/DC). For instance, let's say I have a server capability called:


But this capability does not exist in the agent. If I try to use it in the webhook:


Then I will get the value "ABC". If the variable does not exist in the server but exists in the agent I get a "variable not found".

I'm not sure if this is a BUG or it is how it's supposed to work. I mean, we have an event called "Agent Online" but when I try to use the Webhook as a recipient type, it does not receive any data from the agent.

If so, it would be good to have the recipient type Webhook removed from the list of possible options. : (

Suggest an answer

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

Bamboo Data Center on Kubernetes

Hi, If you are running self-managed environments and looking to adopt modern infrastructure, Bamboo Data Center can now be deployed in a Kubernetes cluster. By leveraging Kubernetes, you can easily...

952 views 3 8
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