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.
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Feb 05 '18, 8:32 a.m.The code - if it is code - is unreadable for me.

It looks like: