Required Attributes For Condition is not working properly when used with Session API?
We had recently encountered a scenario where we were writing a 'Required Attributes for Condition' Script on 'TestAttribute'.
In this script, we retrieved the value of logged-in user using dojo.require("com.ibm.team.repository.web.client.session.Session") API.
The script isn't working as expected.
Asterisk is visible on 'TestAttribute'. But it allows the user to save successfully(without entering any text in 'TestAttribute').
Error Message 'TestAttribute not set' is expected but no such error is thrown.
Though if the logged-in user is removed, the script worked as expected.
|
One answer
I believe you are trying to use a "session variable". Please be aware that this only works in the RTC Web client, not the Eclipse client, or any other forms of clients.
Comments
Asha Faldu
commented Feb 06 '18, 2:36 a.m.
We have used session variable in Read Only Attributes for Condition Script. It's Working Properly there. But it is not Working properly only in Required Attributes for Condition. |
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.
Comments
The code - if it is code - is unreadable for me.
It looks like: