--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/bcb78dac-5cdb-4216-ad87-a9e56291ef4an%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email to go-cd+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/5cb8a558-ed85-4021-b4ed-564d1d11f460n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/c8ca81b4-c68f-43b3-ba49-f505b66ed0d5n%40googlegroups.com.
So the reason why I've been confused over this bit is because when I run your command to get stage history, I get a result which look like this:{"_links" : {"previous" : {"href" : "https://{COMPANY NAME}/go/api/stages/Games-AcesHigh-PHY-Test/Approve/history?before=10780"}},"stages" : [ {"name" : "Approve","counter" : "1","approval_type" : "manual","approved_by" : "test1","result" : "Passed","rerun_of_counter" : null,"pipeline_name" : "Games-AcesHigh-PHY-Test","pipeline_counter" : 20,"jobs" : [ {"name" : "Approve","state" : "Completed","result" : "Passed","scheduled_date" : 1611717690867} ]}, {"name" : "Approve","counter" : "1","approval_type" : "manual","approved_by" : "test1","result" : "Passed","rerun_of_counter" : null,"pipeline_name" : "Games-AcesHigh-PHY-Test","pipeline_counter" : 18,"jobs" : [ {"name" : "Approve","state" : "Completed","result" : "Passed","scheduled_date" : 1605826768229} ]}, {"name" : "Approve","counter" : "1","approval_type" : "manual","approved_by" : "test2","result" : "Passed","rerun_of_counter" : null,"pipeline_name" : "Games-AcesHigh-PHY-Test","pipeline_counter" : 5,"jobs" : [ {"name" : "Approve","state" : "Completed","result" : "Passed","scheduled_date" : 1601954345153} ]} ]The above JSON are not the most recent results.However if I were to use this bit of code (with page size set to 100 as it seems to be the only way to get the more recent results):curl "https://{COMPANY NAME}/go/api/stages/Games-AcesHigh-PHY-Test/Approve/history?page_size=100" \-H "Authorization: Bearer $TOKEN" \-H 'Accept: application/vnd.go.cd.v2+json'I then get (this is just a brief snippet):{"_links" : {"previous" : {"href" : "https://{COMPANY NAME}/go/api/stages/Games-AcesHigh-PHY-Test/Approve/history?before=11468"}},"stages" : [ {"name" : "Approve","counter" : "1","approval_type" : "manual","approved_by" : "gabe","result" : "Passed","rerun_of_counter" : null,"pipeline_name" : "Games-AcesHigh-PHY-Test","pipeline_counter" : 7,"jobs" : [ {"name" : "Approve","state" : "Completed","result" : "Passed","scheduled_date" : 1614046479825} ]}, {"name" : "Approve","counter" : "13","approval_type" : "manual","approved_by" : "gabe","result" : "Failed","rerun_of_counter" : null,"pipeline_name" : "Games-AcesHigh-PHY-Test","pipeline_counter" : 1,"jobs" : [ {"name" : "Approve","state" : "Completed","result" : "Failed","scheduled_date" : 1614037130394} ]Neither results matches the stage history shown in GOCD (after clicking on job details of the stage I am working on, at the right side, the numbers do not match). The pipeline counter is 40+ and the run numbers are either 2, 3 or 4, which doesn't match the counter in the stage history which shows 1 at the most recent instance, the next being 13, 12 and so on. I've attatched an image of the stage history. The part that I've circled, is where I believe the bottom JSON in the example above matches (since the counter is 13 in both JSON and the image).Am I doing something wrong to get a different stage history from what's shown in GOCD?Again, thank you for your patience in assisting me :)Cheers,Gabes.
To view this discussion on the web visit https://groups.google.com/d/msgid/go-cd/3b8debc9-2efb-4b57-8d74-a78a6378212an%40googlegroups.com.
Marques: I think this post came through later, after being stuck in a spam check queue. I don’t think this part of the question is valid any more.