It's all about the answers!

Ask a question

How to get username who modifies workitem


Chandan M B (1133975) | asked Jun 25 '15, 8:13 a.m.
edited Jun 25 '15, 8:27 a.m. by Ralph Schoon (63.2k33646)
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



permanent link
Ralph Schoon (63.2k33646) | 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.
What is getModifiedBy function will do... ?

Your answer


Register or to post 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.