Check-in requirements comments fields mandatory

  • Questions
  • Check-in requirements comments fields mandatory
Question ID: 107525
0
0

Is there a way to make the user fill out comments when he/she checks in a requirement back in? If the project is version controlled and the user checks out a requirement and then checks in requirement the check in comments is optional i’d like to make that field required how can i do that ? thanks

Marked as spam
Posted by (Questions: 18, Answers: 17)
Asked on April 10, 2017 4:04 pm
2 views
Answers (3)
0
Private answer

Hi jgf8u12,
Please see this post: http://eyeontesting.com/questions/3314/making-fields-requirement-fields-required-qcalm-11.html

It shows how to make a field required through code even though a check box for required field isn't available in the customization. Utilizing this along with some flags for controlling that the field was entered and the FieldCanChange subroutine for that module you should be able to code it such that the comment field will be mandatory and requiring some entry prior to checking in the entity.

Hope this helps,
Dan

Marked as spam
Posted by (Questions: 0, Answers: 709)
Answered on July 14, 2017 2:28 pm
0
Private answer

yes i understanding the .isrequired = true statement i get that what i don't get is where to insert this for version control right now someone could check in check out without entering any comments i need to know which field is the comments fields for check in check out and where in workflow scripting to enter the code so everything user checks out and then attempts to check in he/she must enter comments not leave blank nothing out of the box forces user to enter any comments for check in.

Marked as spam
Posted by (Questions: 18, Answers: 17)
Answered on July 14, 2017 2:31 pm
0
Private answer

There is no specific comments field for version control.

You are correct in that there is no out of the box availability for this, so it will take customized workflow. I haven't written this workflow specifically but can tell you that what you would need to do is to use the FieldCanChange subroutine as mentioned above and set flags accordingly to make this happen. When you enter the Module in question you would then need to set a flag that tells whether the comment was entered, then when Exiting the module during the closing post routine check that the flag is set prove a comment was added and thus allow the CanPost to occur.

Marked as spam
Posted by (Questions: 0, Answers: 709)
Answered on July 14, 2017 2:41 pm