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

    16-Pearl
    May 19, 2015

    Hello Ovidiu,

    What output do you get if you run im fields | find /I "Title"?

    Regards,
    Kael

    oostoia1-VisitorAuthor
    1-Visitor
    May 20, 2015

    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