How to get username who modifies workitem
Chandan M B (113●1●41●84)
| asked Jun 25 '15, 8:13 a.m.
edited Jun 25 '15, 8:27 a.m. by Ralph Schoon (63.5k●3●36●46)
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 (63.5k●3●36●46)
| 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, Comments
Chandan M B
commented Jun 25 '15, 8:31 a.m.
Thanks.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.