Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to get username who modifies workitem

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

0 votes



One answer

Permanent link
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,

0 votes

Comments

Thanks.
What is getModifiedBy function will do... ?

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,941

Question asked: Jun 25 '15, 8:13 a.m.

Question was seen: 2,627 times

Last updated: Jun 25 '15, 8:31 a.m.

Confirmation Cancel Confirm