Quantcast
Channel: PTC Community : Popular Discussions - Integrity
Viewing all articles
Browse latest Browse all 3432

How to Read History in Trigger Script.

$
0
0

Hi,

 

I execute following CLI in script, which gives me response.

 

var command = new Packages.com.mks.api.Command("im", "viewissue");

   command.addOption(new Packages.com.mks.api.Option("showHistory"));

   ProjectID = 30300;

   command.addSelection(ProjectID);

  

   var response = api.executeCmd(command);

   if(response != null)

   {

     var status = response.getWorkItems().next();

     //want history here

   }

 

I don't know how to read History through it, here I want what modification was done on the project 30300 in last few days. 

 

Is there any method in API Bean instead of CLI ?


Viewing all articles
Browse latest Browse all 3432


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>