It's all about the answers!

Ask a question

Getting old summary while using workItem.getHTMLSummary().getPlainText()


PROTITI DATTA (11) | asked Sep 25 '19, 7:07 a.m.
edited Sep 25 '19, 8:16 a.m. by Ralph Schoon (56.6k23642)

 Hi,


I am searching with the work id and then trying to fetch the status and summary. However, it is showing me the previous summary and not the current summary.

This is the code that I am following:
int id= 123456;

IWorkItemClient workItemClient=(IWorkItemClient) repository.getClientLibrary(IWorkItemClient.class);
IWorkItem workItem = workItemClient.findWorkItemById(id, IWorkItem.FULL_PROFILE,monitor);
monitor.subTask(workItem.getState2().getStringIdentifier());
monitor.subTask(workItem.getHTMLSummary().getPlainText());

The output that I am getting is the previous one (Quality.TS.obsolteLinks ) and not (DXL changes), as shown in the history below.
Summary  Quality.TS.obsolteLinks Dxl   -> Delete changes

Does anyone know how to resolve this issue?

Be the first one to answer this question!


Register or to post your answer.