RTC how to set an attribute to current user when another attribute changes
In RTC I know how to do calculated scripts in general but I cannot figure out how to set one attribute to the "current logged in user" when a specific attribute is changed to certain values.
Is it possible to this?
RTC 6.0.6.1
|
One answer
Ralph Schoon (63.6k●3●36●46)
| answered May 18 '20, 4:24 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited May 18 '20, 4:25 a.m.
As far as I am aware, there is no official API that would allow to get the current user in JavaScript attribute customization scripts. There is an undocumented unofficial way that works only in the Web UI. You can find examples using https://www.google.com/search?q=javascript+logged+in+user+site%3Ajazz.net
It is possible to access this information in Java based attribute customization. https://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/ shows examples and the method ContributorUtil in the blog shows how.
|
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.