Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Anyone know how to listen for state events on a project?
For example: If someone "Starts" the project then I would like to listen for that event and run some code.
I thought that maybe I can use ProjectEventType or even ProjectAuditEvent. But that doesn't seem to work.
Martin, thanks for that information!
I was able to gather that we need to listen for an event key of 'ContainerTeamServiceEvent/STATE_CHANGE' after setting the wt property verboseEvents=true.
The Project2 class has a getCtmState() which provides the state information of a project which essentialy returns a ContainerTeamManagedState.