Skip to main content
1-Visitor
May 19, 2015
Question

Get the name of a SE based on its id

  • May 19, 2015
  • 1 reply
  • 2782 views

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.

    1 reply

    oostoia1-VisitorAuthor
    1-Visitor
    May 19, 2015

    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...

    21-Topaz I
    May 22, 2015

    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.

    16-Pearl
    May 29, 2015

    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