How to create a Webhook for PortfolioItems in CA Agile Central?

Document ID : KB000015916
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

How to create a Webhook based on a Portfolio Item type using the ObjectTypes attribute?

Answer:

When creating a Webhook, for any of the Portfolio Item types, the syntax is different than in WS API. Below is an example Webhook that will fire for any change on a PortfolioItem/Feature for one Workspace:

{

  "AppName":     "Sean Davis Webhook Mockbin",

  "AppUrl":      "http://mockbin.org",

  "Name":        "Sean Davis Webhook Mockbin",

  "TargetUrl":   "http://mockbin.org/bin/<UUID>",

  "ObjectTypes": ["Feature"],

  "Expressions":

  [

    {

    "AttributeName": "Workspace",

   "Operator": "=",

    "Value": "<UUID>"

    }

  ]

}

If you want the Webhook to fire for Initiatives and Features, the ObjectTypes attribute looks like this:

 "ObjectTypes": ["Feature","Initiative"],

 

Below is a link to the Webhook API documentation for other examples.

https://rally1.rallydev.com/apps/pigeon/docs/webhooks