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

book

Article ID: 15916

calendar_today

Updated On:

Products

CA OPS/MVS Event Management & Automation CA Agile Central On Premise (Rally) CA Agile Central SaaS (Rally)

Issue/Introduction



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

Environment

Release:
Component: ACAPI

Resolution

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