RTC Attribute Customization : Script based Condition not mandating the enumeration field.
![]()
Shwetha G (60●3●31)
| asked Apr 11 '17, 1:08 a.m.
edited Apr 11 '17, 1:30 a.m. by Ralph Schoon (63.3k●3●36●46) Hello All,
|
3 answers
![]()
Ralph Schoon (63.3k●3●36●46)
| answered Apr 11 '17, 3:16 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER I have successfully used conditions with making enumeration attributes mandatory. So it is likely an issue with the JavaScript or a weird problem with your process which would require support to look at it.
Note, if you change attribute customization close all test work items and open them again to see any behavioral changes. In the Web UI use CTRL+F5 to refresh the browser in addition.
Comments Thanks for the reply Ralph.
|
![]() Shwetha,
In all other cases, it returns false
That means that any attribute associated with this script will not be mandatory in all other cases; so, if the priority is not l1, it will not be mandatory.
Is this really the behavior you want to implement?
If your goal is set the Priority mandatory according to the value of the Severity, why do you put the value of the Priority in the "if" condition?
Comments Hi Luca,
Shwetha,
Luca, thanks for your quick response.
Shwetha,
Luca, Thanks again. I cant select the condition script for the priority attribute, as it is "Read Only" field.
i have added the image as well.
Luca, I think the condition is always disabled, as i mentioned. Script based conditions should only be configured in pre-conditions. But the issue was different as mentioned below and i fixed it :)
I am happy that you solved the issue.
showing 5 of 8
show 3 more comments
|
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
Does the script run? Do you see anything in the log files?
Thanks for the reply Ralph.
I am printing severity and priority values and am getting the values. other than that am not getting any issues.
When i change the mandatory field from priority to any other integer value...i get the asterisk mark and also the error message "Attribute " some test" not set".
why is this like this ?