cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

support relationshipflags in java api

0 Kudos

support relationshipflags in java api

When trying to write custom tools or integrations using the java API it often comes to the point where the relationshipflags are of interest.

e.g. In a custom tool we need to indicate a suspect relationship to between two specific items, lets say req and test; while the req is linked to other 3 testcases and the testcase is linked to 6 other req.

The "Trace Status" field is of no use, as it is a "accumulated" not a "specific" value.

 

Currently the only way to get to these flags is via the "displayId" of the relationship field which gives you a string. Then this string must be parsed to find a "?" that indicates SUSPECT.

 

IMHO this is not only fiddly but also hard to maintain. 

When using the mksapiviewer i can see that there is actually a "relationshipflags" attribute for each related item, so this should be accessable via the java api (read and write), as it already is in the trigger api ( see LocalTriggerManager.ScriptRelationshipBean)

 

1 Comment
olivierlp
Community Manager
Status changed to: Archived

Hello,

We are archiving your idea as part of a general review. This action is based on the age of your idea and the total number of votes received, as per this announcement.

You can always post a new idea with all the details required in the form.

Thank you for your participation.