pre-condition action: how to read userID
![](http://jazz.net/_images/myphoto/3cc13f52c1a8aa5f537f32da35f360d7.jpg)
One answer
![](http://jazz.net/_images/myphoto/3cc13f52c1a8aa5f537f32da35f360d7.jpg)
You can use "getAuthenticatedContributor()" to get the contributor ItemHandler and then use "IRepositoryItemService" to fetch IContributor.
Something like this:
Something like this:
IRepositoryItemService repositoryService = getService(IRepositoryItemService.class);
IContributor loggedContributor = (IContributor) repositoryService.fetchItem(getAuthenticatedContributor(), null);
Hi,
I am developing a pre-condition and extending AbstractService, implementing IOperationAdvisor.
I am binding the pre-condition to work item save operation.
Is it possible to read connected users ID?
If yes, Can you please provide appropriate APIs?
Thanks,