Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Scripted Validator in Jira Cloud

Jpoon14641 July 1, 2022

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?

1 answer

1 accepted

0 votes
Answer accepted
Adam Rypel _MoroSystems_
Community Champion
July 2, 2022

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.

Snímek obrazovky 2022-07-02 171300.png

Jpoon14641 July 3, 2022

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?

Adam Rypel _MoroSystems_
Community Champion
July 7, 2022

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.

Like Jpoon14641 likes this
Jpoon14641 July 7, 2022

Rypel, Thanks~

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events