Transition Field validator for Time Spent, Resolution and Testing Steps

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:

  •  Time has been logged against the issue.
  •  There is text/documentation in the "Resolution" and "Testing Steps" field.

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.

1 answer

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

Mahesh S Community Champion Jun 10, 2016

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.

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!

Steven Behnke Community Champion Jun 10, 2016

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.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Trello

Alice Camilla on organizing your work/life/fandoms with Trello!

@Alice Camilla is a university student, currently writing her MA thesis in Archaeology. She's also a freelance blogger and content creator, writing about geeky stuff from productivity apps to JR...

39 views 1 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you