Related artifact reference not showing (RTC Java API)
Hi, I'm having an issue while trying to create a related artifact reference from a workitem to a specific URL through the RTC Java Api. Reference just won't appear.
IURIReference reference = IReferenceFactory.INSTANCE.createReferenceFromURI(uri, comment); try { That's executed on an Advisor, so it should be saved automatically when the execution finishes. Any clue on this? I've been doing some research and haven't found anything much different. I don't know what else to do. Thanks in advance. |
Accepted answer
Ralph Schoon (63.3k●3●36●46)
| answered Jan 05 '18, 10:15 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Jan 05 '18, 10:19 a.m. First of all you must not modify the triggering element in an advisor as you break the interface. An advisor is solely for the purpose to advise and prevent a save to enforce rules if needed.
Chelo Vicente selected this answer as the correct answer
Comments
Chelo Vicente
commented Jan 05 '18, 2:13 p.m.
I have modified it to make a participant.
This indicates that you don't use the API correctly. A reference has two ends. So as a hint, open the link I suggested and use the search window for that blog and type in Link API. READ the blogs you find and look at the examples.
Chelo Vicente
commented Jan 08 '18, 9:07 a.m.
Finally found an useful example that led me to the solution. Accepted answer on this post put me on the right way (that was not trying to create a new reference, but a new link).
|
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.