pre-condition action: how to read userID
One answer
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,