I am attempting to configure field validation for Time Spent, resolution and testing steps but I haven't had any success. If I use the "Fields Required" validator for any of these fields, it will indicate and error whether or not time is logged for Time Spent or text is present in the Resolution or Test Steps field.
When the issue is in "In Progress" and before it can be moved to done, I need to verify the following:
I would prefer not to make these fields "required" since I only need the data available for this specific transition.
I googled the topic and there were some suggestions around ScriptRunner but I don't believe it is available for the Cloud instance and I would not like to add additional cost to Jira.
Any help would be greatly appreciated.
Hi Bob,
I think you are on the right track with the "Field is required Validator"
image2016-6-10 13:40:46.png
If you implement this validator on the transition that moves the issue from In Progress to Done then and only in this case the required values will be validated.
image2016-6-10 13:42:23.png
image2016-6-10 13:42:46.png
I believe, this option comes via script runner (not JIRA Misc Workflow extn). Since, this is a cloud instance, I think he wont get this option.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is in Misc Workflow Extensions. https://innovalog.atlassian.net/wiki/display/JMWE/Validators
This will be replicated in JIRA Core at the end of July natively. https://confluence.atlassian.com/jirakb/jira-miscellaneous-workflow-extensions-jmwe-removal-from-jira-cloud-815262011.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, I have been using the "Field is required Validator" as suggested by Peter. However, it doesn't seem to be working as I expected. As a test, I added "Resolution" to a "Field is required Validator" for the transition from "In Progress" to "Done". When I create a test issue and do not enter any value into "Resolution", an error message will pop up. I then edit the issue and add text to the "Resolution" field and update the issue. When I attempt to transition again, I continue to receive the error message pop-up.
As Steven indicated, I do believe the "Field is required Validator" comes from Misc Workflow Extensions which is installed on my instance.
If anyone else has any comments or suggestions, I would be grateful.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'll try and come back and read through this closer.
Resolution never needs a validator. The Resolution field is ALWAYS required when it's on a screen; it's built into the template.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.