Share all details related to your problem, including any error messages you may have received.
How can I get all scheduled tasks that have already run in task results via rule? I want information like how much time it takes to execute and also the result of a scheduled task, like whether it failed or was completed.
@amanKsingh
You can TaskSchedule API to get the details you needed.
Below are methods you have to use for the information you were requesting
getDefinitionName - Gives the corresponding Task Definition that is scheduled
getLatestResultStatus - Gives the latest run task result status
getLastExecution() - Gives the date of last execution time
From getLatestResult you will get TaskResult Object which can be used to find the start and end time of latest execution which gives you the duration of execution.