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

How to get currentUser by Javascript?

I add a field(contribute type) .
When workflow state is AA, then auto set the currentUser in the field.
But I don't know how to get currentUser by Javascript?

0 votes

Comments

This value is not available via JavaScript  



2 answers

Permanent link
Unfortunately it does not seem to have any way in javascript to get current user as per:
https://jazz.net/wiki/bin/view/Main/AttributeCustomization#API_for_Javascript

Similar discussions are in forum as well such as:

https://jazz.net/forum/questions/68357/how-can-i-get-current-user
https://jazz.net/forum/questions/133477/work-item-customization-getting-current-user-as-logged-in-user

Don

0 votes


Permanent link
Please see answer https://jazz.net/forum/questions/133477/work-item-customization-getting-current-user-as-logged-in-user/184711 for how to get the item ID for the user that runs the operation. Thanks to Amaury Quintero for providing this info.

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

Question asked: Nov 12 '13, 6:36 p.m.

Question was seen: 6,323 times

Last updated: May 21 '15, 4:03 p.m.

Confirmation Cancel Confirm