how do I have a workitem attribute(eg. defect Type) set as mandatory?
One answer
You have to control it from 2 sides.
1. Manage this project Area --> Pre-conditions and FollowUp Actions --> Save Workitem --> Required Attributes for type and State (This will make it mandatory field).
2. In Attribute Customization You have to write a dojo Script condition like
If owner == "ABC" return false
else return true
and add this dojo script in Required attributes for condition (Pre-Condition). and select that attribute that needs to be bypassed.
Note : If you need further clarification , Please let me know.
Comments
- Is correct. 2. only applies to Required attributes for condition and does not necessary have to be used. See the documentation: https://www.ibm.com/support/knowledgecenter/SSYMRC_5.0.2/com.ibm.team.workitem.doc/topics/t_defining_required_properties.html
Secondly, preconditions and follow up actions can be individually configured per role. Roles have an order so it can be configured that it applies to some roles and not to others.
See https://jazz.net/library/article/292