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

Retrieve user which perform a change-state action

I'd like to catch the user which requires a change-state action using a pre-condition plugin on save work item operation.
I can't find a way to catch an IContributorHandle, because I've tried IWorkItem.getModifiedBy() but on pre-condition it has not been set yet.
I was looking for some ISaveParameter methods, but none can give IContributor...
Does someone tried it??

0 votes



2 answers

Permanent link
Hi
You can get the user that is executing the operation from:
saveParameter.getSaveOperationParameter().getAuditableCommon().getUser()

The saveparameter is passed in as 'operation.getOperationData()'; you can just cast (after an instanceof check) to ISaveParameter.

Regards

Marcel
Jazz Work Item team

0 votes


Permanent link
Thank you very much. It works correctly.


Best Regards,
Michele.

0 votes

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,943

Question asked: Sep 17 '09, 11:20 a.m.

Question was seen: 4,960 times

Last updated: Sep 17 '09, 11:20 a.m.

Confirmation Cancel Confirm