It's all about the answers!

Ask a question

RTC how to set an attribute to current user when another attribute changes


Janet Cook (23110) | asked May 18 '20, 2:22 a.m.

 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



permanent link
Ralph Schoon (63.6k33646) | 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


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