Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X
Hi, guys
I am trying to get the Title of a Structure Element based on its Id.
I am running from cmd the following command:
im issues --hostname=%HOST% --port=%PORT% --user=%USERNAME% --fields="ID,Title,State" --fieldFilter="Project=%PROJECT%" 29684
The command is executed successfully but the Title field isn't printed in the console output. The ID and State fields are printed. This is the output that I get:
29684 Approved
I don't know why the Title field is ignored even though the structure element has a Title. Could anybody give me some hints? Is there other ways to get the Title field of a Structure Element?
Btw, I'm using Integrity 10.5.
Thanks.
Hi, I have found a workaround for this. I used the viewissue command and then I made a grep for the Title field and redirected the output in a text file.
im viewissue --hostname=%host% --port=%port% --user=%USERNAME% 29684 | find /I "Title:" > se.txt
But my question still remains unanswered...
Hello Ovidiu,
What output do you get if you run im fields | find /I "Title"?
Regards,
Kael
Hello Kael,
I get the following output:
Title
Title.fva
This is the first time when I run this command, and I saw that it needs Admin permission.
Kind regards,
Ovidiu
Are you certain the field is actually called "Title" behind the scenes? It is possible to have a text override on a field name so it can be difficult to determine.
Ovidiu,
I suspect Joe is correct about this. If you are unsure of how to check this, you should probably open a case with PTC Integrity Lifecycle Manager Support.
Regards,
Kael