How to retrieve Server Capabilities values in a ChainActionSupport

I want to retrieve a custom capability value defined in the 'Bamboo Administration' -> 'Server Capabilities'

in a ChainActionSupport.

What class should I use?

1 answer

1 accepted

1 vote
Accepted answer
Brydie McCoy Atlassian Team Feb 12, 2012

Hi,

You should be able to inject the com.atlassian.bamboo.v2.build.agent.capability.CapabilityContext class into your action. This returns you any capabilities available at the time of calling. As your ChainActionSupport class runs on the server, you will get the server capabilities.

Cheers,

Brydie

Thank you for your advice.

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked Thursday in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

4,344 views 20 13
View question

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you