I am using this api to fetch bug from devops org work item
$api = "https://{0}.almsearch.visualstudio.com/{1}/_apis/search/workItemQueryResults?api-version=5.1-preview" -f $OrganizationName, $ProjectName
$body = '{"searchText":"Title: my xyz title here","skipResults":0,"takeResults":2,"sortOptions":[],"summarizedHitCountsNeeded":true,"searchFilters":{"Projects":["myprojectname"],"Work Item Types":["Bug"],"States":["Active","New"]},"filters":[],"includeSuggestions":false}' | ConvertFrom-Json
Invoke-RestMethod -Uri $uri -Method POST -ContentType "application/json" -Headers @{Authorization=("Basic {0}" -f $userlogintoken)} -Body $body
I don't have bug id.
I don't want to use title and tag or description, repro steps in searchtext to query bug from DevOps.
Are there any fields where I can put some unique value while creating bug then while searching I can use that value to search for a particular bug?
(i am creating bug using my script. before creating I need to query in DevOps whether the same bug is not already present then only create new)