DNG v7.0.2: Unclear ID when adding a term link with OSLC API
Hello everybody,
Section rdf:nodeID="A3 was added by my solution. Now I'm getting an error that id is not defined in primary text for "Business Recovery Matters" where a link is to be created. The error is next:
But honestly I don't have any understanding how to define that ID referring to my custom A3 section.
Could anybody provide any link or simple explanation where it can be found. Thank you very much in advance! |
One answer
When adding a relationship between artifacts, you only add the assertion for the relationship, you don't add the reified statements describing that assertion. So for example, say you did a GET for work item with URL https://host:port/project/id and you want to add a resolved by link to another work item. You would add the following triple:
(https://host:port/project/id, http://jazz.net/xmlns/prod/jazz/rtc/cm/1.0/com.ibm.team.workitem.linktype.resolvesworkitem.resolvedBy, https://host:port/project/id2)
The do the PUT to update the resource. When you do another GET on https://host:port/project/id, you will see the relationship you added, and the reified statements that describe it.
Comments Hi Jim,
But for me it's not clear one case. When I add term reference manually in primary text, I see that related link is displayed in Links section. When I remove this link in primary text, it will disappear in Links section.
But when I add it with OSLC, those links aren't bind. I must to remove it first in primary text and second in Links section.
Obviously, they are bind somehow in case of manual creation. Or no?
I was thinking that ID in primary text's link is responsible for that binding. That's why I asked the question which I asked. But it seems that I was wrong, that ID is an own identifier only for a tag in primary text.
So if not ID then what is responsible for that behavior? Or ID is? |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.