Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Able to use createquery command and working fine..Now how to run created query through CLI?
Please support
Hi @SS_10728259
you can get them using something like this:
Command cmdS = new Command("im viewissue");
cmdS.addSelection("Id of your Test Suite");
Response result = integritySession.execute(cmdS);
WorkItemIterator wit = result.getWorkItems();
while (wit.hasNext()) {
WorkItem wi = wit.next();
ItemListImpl fieldValue = (ItemListImpl) wi.getField("Contains").getValue();
for (Iterator it = fieldValue.iterator(); it.hasNext();) {
Item item = (Item) it.next();
System.out.println(item.getId());
}
}
Regards
Zeiad
Thanks, No familiar with java much. Could you please share it in python if possible?