Question
PCM Configuration
HI ,
I had earlier posted a question but could not edit the Title. so Posting it again.
I have a requirement that I should not allow developers to check in till they do not add a specific text in the comments. Is that something doable ? I was going through the video as is available and it says that it's doable . i created an activity tzGovernanceRule_PreventCheckingInRulesForComments .added to my ruleset . not sure then how can I add the validation and how that will be applicable to all checkin of any kind of rule.
Hi Khirod,
Create your custom activity in "Rule-" class so that it will be applicable for all rule types. In the activity, check for "pyMemo" property and if it fails your custom validation, set the Comments param to the desired error message. For reference check "tzGovernanceRule_NotifyCheckin" activity. Log off and login back to reload the configuration purpose dropdown in PCM portal. Create a configuration using the new custom governance purpose.