Relevance Query - Need Input

Hello All,

I am try to pull list of action which are executed on particular day, below API is able to fetch information
https://xyz:52311/api/query?relevance=(ids of it , names of it, times issued of it, targeting relevance of it) of bes actions whose (name of it starts with “RedhatPatching”)

but when I added condition for times issued then I am getting error, Please suggest

https://xyz:52311/api/query?relevance=(ids of it , names of it, times issued of it, targeting relevance of it) of bes actions whose ((name of it starts with “RedhatPatching”) and (times issued of it starts with "14 sept 2021"as date)

smart quotes in your example - and a mismatched paren

your date format is not quite right (3 characters for month)

q: "14 sept 2021" as date
E: This expression could not be parsed.

q: "14 sep 2021" as date
A: Tue, 14 Sep 2021
I: singular date

time issued gives a Time object, so the string comparison will not quite work
https://developer.bigfix.com/relevance/reference/bes-action.html#time-issued-of-bes-action-time
If you convert the Time object to a Date, you can then compare
https://developer.bigfix.com/relevance/reference/time.html#time-as-local-date-date

Try this slightly modified query?

(ids of it , names of it, times issued of it, targeting relevance of it) of bes actions whose ((name of it starts with "RedhatPatching") and (time issued of it as local date = "14 sep 2021"as date | False))

2 Likes

executed the above query but got output as “Error: Incompatible types.

Working API

(ids of it , names of it, times issued of it, targeting relevance of it) of bes actions whose ((name of it starts with “RedhatPatching”) and (time issued of it as local date = "14 sep 2021"as date))

1 Like