Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
Greetings to whom it may concerns,
I want to get sub-item lists of several documents in the Integrity system, using MKS API.
Solved! Go to Solution.
While you cannot run "im viewsegment" from the CLI, it is certified for the API.
It is in the list of certified commands in the Integrations Builder Guide: Published API Commands > Published Commands > Workflow and Document Management Commands > im viewsegment. I've linked to the 11.2 guide, but the command has been supported in the API for several releases now.
The command you want is im viewsegment [document ID], which will give you the entire document.
For options, such as filtering, see the viewsegment man page in the CLI Reference: https://support.ptc.com/cs/help/integrity_hc/integrity112_hc/en/#page/IntegrityHelp%2Fim_viewsegment.html%23
Thank you for your reply.
However,using CLI and Java API.
the "viewsegment' command is available only in the GUI mode, as far as I know.
( C:\Users>im viewsegment 2
*** MKS124814: Cannot show view information: This view is only available in the
Graphical UI.)
Is there anyway to get all child Items of selected item(document) (not just 1 level, the whole level of child items) by java api?
* This Java API gets responses of all items in the system so it does not give me the lists of child items of a selected item(document=2).
Command cmd = new Command(Command.IM, "issues");
cmd.addOption(new Option("queryDefinition", "(field[\"Document ID\" = 2])"));
While you cannot run "im viewsegment" from the CLI, it is certified for the API.
It is in the list of certified commands in the Integrations Builder Guide: Published API Commands > Published Commands > Workflow and Document Management Commands > im viewsegment. I've linked to the 11.2 guide, but the command has been supported in the API for several releases now.
For being not able to find suitable options, I tried this.
And there are problems I'm aware of, with the command,
that it shows sub-items of every documents in the system,that it shows sub-items of one whose Document Id is 2, not lists from several document.So, Here is my question,
Is there any other command or options appropriate to in this situation?
Any ideas or tips will be very helpful,
thank you for reading.