Template Ignores OBS Attribute Requirement
search cancel

Template Ignores OBS Attribute Requirement

book

Article ID: 406321

calendar_today

Updated On:

Products

Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

When you create a new investment object instance from Template, like a Project or a Custom Investment object instance, that has a rule to require a value for an OBS attribute, it is possible to create a new instance without any value if the OBS attribute has a default value set in Studio and if the originating template does not have any value.

Steps to Reproduce

  1. Create an OBS (e.g.: 'My OBS') and associate it to any investment object (e.g.: Project, Custom Investment...).
  2. Add an API attribute ID to the OBS attribute in that object and a default value.
  3. Edit a Blueprint for that object.
  4. Add a new Rule:
    1. Rule Type: View Page
    2. Conditions: Always True
    3. Actions: Required Attributes: My OBS
  5. Add the attribute in the Create Template dialog.
  6. Publish the rule.
  7. Make any object instance with empty 'My OBS' attribute a 'Template'.
  8. Change the Blueprint of that instance to the previous one. When prompted, do not add a value to 'My OBS' (click Cancel).
  9. Click on New from Template button.
  10. Fill in all the required attributes except the 'My OBS' attribute.

Expected Results: Create button is grayed out.

Actual Results: Create button is enabled and you can create a new object instance. It will not have a value for My OBS as the original template did not have any.

Environment

Clarity 16.3.2, 16.3.3

Cause

DE174146

Resolution

This issue is fixed in Clarity 16.4.0.

Workaround: Remove the default attribute value in Studio for that attribute, or add a value into the originating template.