I’m having an issue with fetching test cases along with the workitems (jira tickets) connected to the testcase.
I’m using POST “testcase/find” and some of the cases are returned multiple times and I can’t figure out why it’s happening or how to change the payload to only get one item.
Currently what I send to the endpoin:
{
"pagination": {
"offset": offset,
"limit": limit,
},
"map": [
{
"entities": ["testcase", "workitem"],
"result": "workitem",
"optional": True,
}
],
"includeTotalCount": True,
"filter": {"id": test_case_ids},
}