cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Access item history from trigger script

Highlighted
Guest

Access item history from trigger script

I am trying to put together a document when a trigger is run from Integrity. In particular I want to get the text which you can find by viewing the "History" tab of any item from the User viewset.

 

1) Am I correct in assuming the history cannot be accessed from a standard bean?

 

I have tried the following code to retrieve the history using the API from my script:

var apisession = eb.createAPISessionBean();
var command = new Packages.com.mks.api.Command("im", "viewissue");
command.addOption(new Packages.com.mks.api.Option("showHistory"));
command.addSelection(10000);
var response = apisession.executeCmd(command);

 

But I can't really tell if this is useful, it doesn't seem to contain the history (despite use of "showHistory") when I've looked through the "response" object's keys.

 

2) Is there another way to do this?

 

Thanks 

Announcements