We would like to build a selective query to get from DM a list of active alarms, which hold specific TT number (dynamic) in custom property ALARM.JIRA
Maybe if we can build filters dynamically via API it could be an option, but according to current Web Services reference we can’t find any such method.
It's not possible at the moment to specify a filter on an alarm property in one of the GetAlarms API methods. As a workaround, you could use the GetAlarms method and in the filter you can specify additional columns where you could specify the alarm property name that contains the TT number. Then the result will contain this column for every alarm, but you will have to filter out the alarms yourself. This is not ideal when having a lot of active alarms.
Another solution could be to use GQI. Using GQI it's possible to filter the alarms data source on a custom alarm property. This way you don't have to fetch all alarms since GQI will do the filtering for you. But unfortunately there is no public API method yet to get data from GQI. There's an upcoming feature User-Defined APIs where you could implement such an API yourself.