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

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

0 votes



One answer

Permanent link
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.

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
× 12,019

Question asked: May 18 '20, 2:22 a.m.

Question was seen: 940 times

Last updated: May 18 '20, 4:25 a.m.

Confirmation Cancel Confirm