JavaScript condition based on value of custom attribute?
![]()
I'm doing a JavaScript-based condition to be used to determine dynamically if an attribute should be required, based on
https://jazz.net/library/article/1003/#conditions We want a custom String field (Submitter phone) to be required whenever a custom Integer field (DevWorksID) is equal to 0. I've looked in a couple other places: https://jazz.net/wiki/bin/view/Main/AttributeCustomizationExamples#Determine_the_value_set_for_an_e https://jazz.net/wiki/bin/view/Main/AttributeCustomization#Conditions and everything seems to only work off built-in attributes. Is this possible? I'm on 4001. Thanks, Susan |
Accepted answer
![]()
Yes, I have tried conditions with custom attributes and it worked for me.
Here is a dummy script: dojo.provide("com.example.Condition");Then from Operations Behavior-> Save WorkItems, add the precondition "Required Attribute for Conditions" and add your new condition for the required attribute(s). Susan Hanson selected this answer as the correct answer
|
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.