Search code examples
rtc

How to read the users from workitem-state in workflow workitem, RTC?


How do I read the users from workitem-state in workflow workitem, RTC?

I want to compare the logged in user with the current state users. Because I want to enable and disable the permissions depending upon the states.


Solution

  • As a starting point, you can check out the question "work item customization: getting current user as logged in user".
    It includes:

    var getAuthenticatedContributor = com.ibm.team.repository.web.client.session.getAuthenticatedContributor; 
    var loggedInUser = getAuthenticatedContributor().itemId;