It's all about the answers!

Ask a question

Required Attributes For Condition is not working properly when used with Session API?


Asha Faldu (1110) | asked Feb 05 '18, 7:06 a.m.
edited Feb 05 '18, 7:21 a.m.

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 commented Feb 05 '18, 7:35 a.m. | edited Feb 05 '18, 8:32 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

The code - if it is code - is unreadable for me.

It looks like:

One answer



permanent link
Donald Nong (14.5k614) | answered Feb 06 '18, 1:10 a.m.

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


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.