I am using Scriptrunner in Jira Cloud.
I create a workflow from A to B with transition C.
In this transition C, I want to validate a custom field "Epic Document 1".
It is a multi-select field.
What should I do to add script to validate this transition that when I go from A to B, the user must fill out this custom field?
Hi @Jpoon14641 ,
I don't think you need Scriptrunner for that, if the field is empty initially. You can use native validator "Field Required Validator", which checks whether the specified custom field is empty or not.
I suppose that should fit your needs.
Thanks @Adam Rypel _MoroSystems_
I have tried this option before. However, when I click into it, the options only include summary, sprint, component, etc. which are those default fields provided by Jira itself. I could not find my custom fields I created there.
How could I make my custom fields appear in the option list in the Field Required Validator?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Jpoon14641 ,
Sorry for the delay, had some days off. If you want to choose a custom field, you have to type in the custom field name - then it will be found and you can choose it. It is well hidden! :)
Let me know if that helped.
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.