It's all about the answers!

Ask a question

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

Janet Cook (2319) | 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?

One answer

permanent link
Ralph Schoon (63.3k33646) | answered May 18 '20, 4:24 a.m.
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

It is possible to access this information in Java based attribute customization. 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.