How to get username who modifies workitem
![]()
Chandan M B (101●26●61)
| asked Jun 25 '15, 8:13 a.m.
edited Jun 25 '15, 8:27 a.m. by Ralph Schoon (60.9k●3●36●43)
Hi,
I am using server side extensions on a follow up action. I need to fetch the username who modfies the created workitem. My code looks like : newState.getModifiedBy() But it is null Regards, Chandan |
One answer
![]()
Ralph Schoon (60.9k●3●36●43)
| answered Jun 25 '15, 8:29 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
See https://rsjazz.wordpress.com/2014/05/26/only-owner-can-close-workitem-advisor/
The operation runs in the context of the user that actually performs the change so the user that is changing the work item is IContributorHandle loggedIn = this.getAuthenticatedContributor();Then fetch the Contributor from the handle and get the rest of the data, |