Skip to main content
14-Alexandrite
Oct 29, 2020 10:11 AM UTC
Solved

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

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.

14-Alexandrite
Nov 2, 2020 12:00 PM UTC

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 

2 replies

5-Regular Member
Oct 29, 2020 3:13 PM UTC

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

Translate
Chittaranjan_1114-AlexandriteAuthorAnswer
14-Alexandrite
Nov 2, 2020 12:00 PM UTC

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 

Translate