Open franck-boullier opened 5 years ago
It looks like we can't use expressions like "now" for dates when we query BZ API. We might have to proxy it via MEFE. (create a dedicated endpoint)
I don't know why relative time expressions didn't work with my last attempt on the BZ API, but they do now.
GET https://dashboard.unee-t.com/rest/bug?include_fields=product%2Crep_platform%2Ccf_ipi_clust_6_claim_type%2Cshort_desc%2Cpriority%2Cbug_status%2Cresolution%2Ccf_ipi_clust_5_budget%2Ccf_ipi_clust_5_spe_purchase_cost%2Copendate%2Cchangeddate%2Cop_sys&f1=creation_ts&f2=creation_ts&o1=greaterthaneq&o2=lessthaneq&query_format=advanced&v1=startDate&v2=endDate&api_key=userApiKey
Should get the desired result.
Please note that the following placeholders will need to be replaced with appropriate values:
@nbiton
startDate
and endDate
userApiKey
is NOT the same as the MEFE user API key correct?Thanks
startDate/endDate:
userApiKey: It's not the same. The user's BZ API key should be used here
the problem
How can we convert a search request like this one
into a REST API call that returns JSON
Possible solution:
Using the BZ native Search API to do this