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.6k●3●36●47) Hello All,
|
3 answers
Ralph Schoon (63.6k●3●36●47)
| 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
Shwetha G
commented Apr 11 '17, 4:12 a.m.
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
Shwetha G
commented Apr 11 '17, 3:34 a.m.
Hi Luca,
Luca Martinucci
commented Apr 11 '17, 3:42 a.m.
Shwetha,
Shwetha G
commented Apr 11 '17, 3:49 a.m.
Luca, thanks for your quick response.
Luca Martinucci
commented Apr 11 '17, 4:07 a.m.
Shwetha,
Shwetha G
commented Apr 11 '17, 4:26 a.m.
Luca, Thanks again. I cant select the condition script for the priority attribute, as it is "Read Only" field.
Shwetha G
commented Apr 11 '17, 4:32 a.m.
i have added the image as well.
Shwetha G
commented Apr 11 '17, 6:19 a.m.
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 :)
Luca Martinucci
commented Apr 11 '17, 6:30 a.m.
I am happy that you solved the issue.
showing 5 of 8
show 3 more comments
|
Hello Ralph and Luca,
Comments
Luca Martinucci
commented Apr 11 '17, 6:28 a.m.
When an attribute is mandatory, and its value is "Unassigned", the work item save fails, so you have to select a different value.
|
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 ?