Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
Hello,
The "im createcontent" and "im importcontent" commands allow to provide an input file.
Can someone help info with the structure of such an input file ?
--addAttachment=value
adds attachments to the issue, where value is of the form "fieldName,path=pathToFile[,name=nameOfAttachment][,summary=shortDescription] " .
Correction: I am not interested in the --addAttachment=value parameter but rather in the [(-F file | --selectionFile=file)] parameter
Thank you!
Solved! Go to Solution.
Hi Amatei,
I'd suggest opening a Support case, with the Integrity team, to double-check. It sounds like the --addAttachment example you showed, is not even relevant to your usage or question now then?
Here's the help section, for the --selectionFile option:
http://support.ptc.com/cs/help/integrity_hc/integrity122_hc/en/#page/IntegrityHelp%2Foptions.html
It's just a general option to be used with certain CLI commands, so it's documented on its own.
I don't think you'll be able to use it, in the manner you wish. It's just for selections that the CLI command should run against (ex. Item IDs,
|
The --selectionFile option is only relevant for commands that have selections and can only be used to specify the command selection (not command options). Be careful to avoid duplications. In some cases if a file, member, project or Sandbox is listed twice in the file, the command may report an error.
|
Hi Amatei,
Are you really asking about the --selectionFile, to be used to provide input to the CLI command, to process against?
Or are you simply asking about the --addAttachment option, to allow you to add an attachment to the content you are creating/importing?
Your example seems to point to the latter.
You may want to open a Support case for this, but here is an example of the --addAttachment option you can use:
Hi
I need details about --selectionFile, to be used as input file to the CLI command, to be processed line by line.
Hi,
I have the same question for the other two commands:
im createsegment
im importsegment
How to use the --selectionFile parameter?
I find absolutely no example in the documentation
[(-F file | --selectionFile=file)]
Hi Amatei,
I'd suggest opening a Support case, with the Integrity team, to double-check. It sounds like the --addAttachment example you showed, is not even relevant to your usage or question now then?
Here's the help section, for the --selectionFile option:
http://support.ptc.com/cs/help/integrity_hc/integrity122_hc/en/#page/IntegrityHelp%2Foptions.html
It's just a general option to be used with certain CLI commands, so it's documented on its own.
I don't think you'll be able to use it, in the manner you wish. It's just for selections that the CLI command should run against (ex. Item IDs,
|
The --selectionFile option is only relevant for commands that have selections and can only be used to specify the command selection (not command options). Be careful to avoid duplications. In some cases if a file, member, project or Sandbox is listed twice in the file, the command may report an error.
|