PROBLEM DESCRIPTION


Starting from IWX v2.6.1, the /workflow/runs.json API has been enhanced to filter the runs for a workflow based on the limit parameter. 


SOLUTION


If the limit parameter is set as n, the recent n statuses of runs will be displayed.



For instance,

http://<hostname>:2999/v1.1/workflow/runs.json?auth_token=<auth_token>&workflow_id=4a6fc1fce118be52bc44fee0&limit=1

Will get you the last run for the provided workflow_id.