Quality gate api only gives to me whether a particular project is failed or passed but I would like to know if there is any api available which can tell since how long my project’s quality gate status is failed
I think you’re looking for
/api/project_analyses/search. This API is what’s used to show historical analysis results on the Activity tab of the project. It would let you establish the prior event when the Quality Gate first turned red.