Forums

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

How to check if a custom field contains data prior to allowing transition?

Mike Prill September 30, 2023

Hey there,

I'm trying to figure out how check if there's any data in a specific custom field prior to allowing a transition from In Progress to Done.

I chose the correct transition and clicked Validators and am now looking for the right option. I have scriptrunner and was hoping it would allow a JQL based validator but no dice there. If I'm stuck using jira expressions what is the one to check if it contains data and/or is not empty? It's custom field 10102 if that makes a difference.

Thanks in advance to anyone willing to point me in a direction :) I checked this forum as well as google and youtube but alas.

3 answers

0 votes
Alan Stephenson
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 1, 2023

What is the type of the custom field?

possible options could be field is not empty or field is not null

Mike Prill October 4, 2023

It was a text field, sorry I didn't state that initially.

0 votes
Mike Prill September 30, 2023

Looks like issue.customfield_10102.length > 0 within a validator gets me what the experience I want. If anyone knows how to do this in JQL instead that would be amazing.

0 votes
Mike Prill September 30, 2023

It looks like maybe this works as a Condition instead of a validator, but not sure it will do what I want?

issue.customfield_10102.length > 0

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events