I'm trying to make a wiki page to view differences of 2 workitems or of 2 specific revisions of the same workitem.
I was thinging about using IDiffManager for this, but I couldn't get it working up to now.
From following code:
Code: Select all
#set($wi1=$trackerService.queryWorkItems("id:PLAY-4", "id").get(0)) ## get workitems
$wi1.description.content\\ # check workitems
#set($dataSvc = $wi1.getDataSvc())
#set($DiffMan=$dataSvc.getDiffManager()) # get DiffMan
$DiffMan\\ # DiffMan exising?
$DiffMan.generateDiff($wi1, $wi2, "title") # try to use DiffMan..
I get this output:
Text from PLAY-4
Text from PLAY-5
$DiffMan.generateDiff($wi1, $wi2, "title")
It seems that I get a DiffMan object, but can't use the method (or pass wrong arguments).
Does anyone have expirience with this?
I was hoping to get some kind of output like the history view of a workitem (but not with the limitation that it always compares 2 consecutive reisions of the same workitem).
Especially comparing 2 specific revisions of a workitem would be very convenient for our review process (history view is not, because the workitem might have been saved a lot of times since the last review...)