[SOLVED] Call TrackerService (getTrackerService) in a document post-save script

Description
SteffPoint
Posts: 56
Joined: Wed Mar 07, 2018 1:06 pm

[SOLVED] Call TrackerService (getTrackerService) in a document post-save script

Postby SteffPoint » Tue Dec 04, 2018 6:19 am

Hello,

I would like to use the method

Code: Select all

getTrackerService
in a document post-save script, but I don't know how to exactly call it.

In the workflow context for example I am calling the TrackerService like this:

Code: Select all

var trackerService = workflowContext.getTrackerService();



Kind Regards,
Steff
Last edited by SteffPoint on Tue Dec 04, 2018 9:54 am, edited 1 time in total.

micdal
Posts: 22
Joined: Thu Feb 09, 2012 6:22 am

Re: Call TrackerService (getTrackerService) in a document post-save script

Postby micdal » Tue Dec 04, 2018 6:52 am

Hi Steff,

I only used trackerService in a workflow action, but here it was as easy as using "trackerService.getXyz()".

Regards,
Michael

SteffPoint
Posts: 56
Joined: Wed Mar 07, 2018 1:06 pm

Re: Call TrackerService (getTrackerService) in a document post-save script

Postby SteffPoint » Tue Dec 04, 2018 7:11 am

The trackerService in pre-save / post-save context is "predefined", so one doesn't have to call it.

One can simply use it.


Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: No registered users and 6 guests