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

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.

0 votes

Comments

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

It looks like:



One answer

Permanent link

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.

1 vote

Comments

 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 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

Question asked: Feb 05 '18, 7:06 a.m.

Question was seen: 3,682 times

Last updated: Feb 06 '18, 2:36 a.m.

Confirmation Cancel Confirm