Question

Agile Studio - API (PRRestService/api/v2/bugs?)

The current implementation of AS API for bugs seems to return duplicates. The issues seems to be prevalent regardless of whether returning known issues is set to true or not. Is this a known issue?

***Edited by Moderator Marissa to update platform capability tags****

Comments

Keep up to date on this post and subscribe to comments

August 13, 2019 - 9:49am

I should have stated "regardless of whether returning resolved issues is set to true or not", not known.

September 10, 2019 - 10:43am

Although there has been no comment on this, I thought I would share my solution for dealing with this in .net core.  

Assuming you populate a list object you can deduplicate it using the below:            

List<PegaBugItem> listWithnoDups = listWithDups.GroupBy(i => i.Id).Select(g => g.First()).ToList();
            

Pega
September 17, 2019 - 7:28am

Hi Chris,

V2/bugs service is not supposed to return same bug twice. Can you please let me know which version of Agile studio you are using and the params you are passing for the rest service?

Thank you,

chakravarthi