Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
Hi,
we're facing a problem while fetching all fields/attributes/properties available for an issue type via CLI.
in general we try to provide some kind of content assist to support users while configuration of a java interface to fetch issues for a concrete PTC server instance.
So what we are currently doing:
1. fetching all types by using 'im types'
2. then iterating over all types within 'im types' and getting properties(e.g. Spawns, Changes Authorized By, Shared Text,), visibleFields(e.g. Parameters, Document Phase, Content Without Back Traces Percentage)
3. to get some more information we're using 'im fields' to fetch e.g. the expected type of a value
after finishing there are some attributes missing e.g. 'Document ID' which seems to be a computed field which comes from the document model? it is visible in the administration client but isn't within the response of the 'im types' command. We already tried 'im viewtype' without success. I noticed the requirement type is of typeClass 'node' and we expect a possibility to programatically figure out via the java CLI interface which fields will be added statically/dynamically by the document model, but how?
our current quickfix is to ask for the typeClass of a particular type and adding the field information of e.g. 'Document ID' to it manually because it is expected to be available on our test server. we know it is possible to customize the document model, hence our implementation would be error prone and we're facing a similiar problem with some relation/properties where e.g. 'contains' & 'contained by' can be both a 'relationship' field & a property dynamically/statically added by the document model.
Would be nice to get some hints for a robust implementation for fetching 'all' visible attributes of a particular type.
Thanks in advance, best regards,
johannes
We have a similar need in our system, although simpler.
Iterate over all of the item types
iterate over all the fields with ids -1 through -51
remove the "overrides for fields" description that was unnecessarily added for the field within the type
We're looking at a .bat file with a bunch of commands, and a manual trigger and associated script that we'll invoke with a .bat file. We're leaning towards the trigger and script at the moment.
If/when we figure this out, I'll post the solution that we've found.