Make "Comments" field Mandatory for Workflow Task Associated with a Specific Workflow
Version: Windchill 13.0
Use Case: I have managed to ensure that users have to provide text in the "Comments" field for all workflow tasks in Windchill. I achieved this using the method detailed under the "Instructions for Windchill PDMLink 10.0 - 12.1" at https://www.ptc.com/en/support/article/CS35488?source=search.
Description:
The issue with this solution is that the solution applied to all workflow tasks. I would like to be able to only apply this solution to workflow tasks that are generated as a result of them being produced from a certain workflow. The article found at https://www.ptc.com/en/support/article/CS35488?source=search includes a function that is added into the custom.jsfrag file. I was wondering if it would be possible to include text in this function that will result in the result I am looking for. For example, some sort of "If" condition that checks the "Process" attribute value of the workflow task to see if it matches a certain value before applying the functionality. Can anybody help?

