MSK
MSK

Reputation: 1

What is the REST API URL to get "Linked Defects" from Test in ALM

ALM image

I was not able to get the linked defects from the test, Is there a way to get it through REST API ?

Upvotes: 0

Views: 814

Answers (2)

Yoshi
Yoshi

Reputation: 354

I use multiple query params to get the defects only for relevant test cycle with following request (otherwise I was fetching too many defects):

.../defects?query={test.id[12345];test-instance.id[6789012]}

Upvotes: 0

Bela Tamas Jozsa
Bela Tamas Jozsa

Reputation: 714

You have to use the Cross-Relations and approach it from the defects side:

.../defects?query={test.id[>=1 And NOT = 5]}

This one will give you all the defects that are connected to the tests with id 1-4. More info on Cross-Filters here

Upvotes: 2

Related Questions