How to use Javascript to set the logon user (authenticated user) as default OWNER?
2 answers
https://jazz.net/forum/questions/68374/how-can-i-get-logged-in-user-in-javascript
https://jazz.net/forum/questions/170556/how-to-get-user-loged-in-rtc-for-customization
https://jazz.net/forum/questions/133477/work-item-customization-getting-current-user-as-logged-in-user
If you are new to attribute customization, this tutorial is a good start.
https://jazz.net/library/article/537
And you can find most of the API specifications here.
https://jazz.net/wiki/bin/view/Main/AttributeCustomization
Comments
Thanks to Amaury Quintero for providing this info.
Hi Ralph, unfortunately, with JavaScript for work item customization, the use of com.ibm.team.repository.web.client.session.Session is not accessible.
Ralph, I believe that in https://jazz.net/forum/questions/68374/how-can-i-get-logged-in-user-in-javascript , you also commented that "I tried that in the context of a Calculated Value Provider and the dojo.require() statement for the Session object prevents the script from loading. The internal scripting engine does not have the session object exposed.
https://jazz.net/wiki/bin/view/Main/AttributeCustomizationExamples#Get_an_item_s_UUID_users_iterati indicates that there is no access to the logged in user."
And that's the same problem I'm experiencing, i.e., cannot load the Session.