Skip to main content
14-Alexandrite
October 29, 2020
Solved

How to add Relationships between 2 document contents with CLI ? Example:

  • October 29, 2020
  • 1 reply
  • 2070 views

Hello Team,

 

How to add Relationships between 2 document contents with CLI ?

 

Example:

Input Document (Input ID 123)

Requirement Document (Requirement ID 456)

Input Decomposed To Requirement OR vice-versa

 

How to make this relationship via CLI command ?

 

Thanks in advance.

Best answer by Chittaranjan_11

I got the solution with addrelationship command,

 

Example: Input 123 --> Decomposed To --> Requirement 456

 

im editissue --hostname=XXXX --port=XXXX --user=XXXX --password=XXXX --addRelationships="Decomposed To:456" 123

 

Its working!!

 

Thanks @MichaelChatel 

1 reply

5-Regular Member
October 29, 2020

Do you wish to set relationships at the time of creation, or you're trying to link these together, after the fact?

 

You may want to open a Support case for this, but I imagine you'd want to use the addRelationships and removeRelationships options, if trying to do this after the fact?

 

ex.

https://support.ptc.com/help/windchillrvs/r12.3.1.0/en/#page/IntegrityHelp%2Fim_editissue.html%23

Chittaranjan_1114-AlexandriteAuthorAnswer
14-Alexandrite
November 2, 2020

I got the solution with addrelationship command,

 

Example: Input 123 --> Decomposed To --> Requirement 456

 

im editissue --hostname=XXXX --port=XXXX --user=XXXX --password=XXXX --addRelationships="Decomposed To:456" 123

 

Its working!!

 

Thanks @MichaelChatel