It's all about the answers!

Ask a question

workingCopy.getReferences() returns stale results


Pradyumna Achar (1624) | asked Oct 30 '12, 6:13 a.m.
Hi,

I am connecting to RTC via the plain java libraries, and I can read work items and their references (attachments, etc) using workingCopy.getReferences(). However, if a user adds a new attachment to the work item using the web client, my plain java client continues to see the old list of references.

How do I force the java client to go and get the most recent version of these references?

PS: I tried doing repository.itemManager().refreshSharedItems, but no luck.

Thanks & regards,
Pradyumna

One answer



permanent link
Ralph Schoon (63.5k33646) | answered Nov 01 '12, 5:17 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
 You must resolve the whole work item again, to avoid stale results. You only hold one state of the work item. Search the forum for stale. This has been discussed before.

Your answer


Register or to post 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.