Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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

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.
Oct 01, 2023

What is the type of the custom field?

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

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

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.

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
Site Admin
TAGS
AUG Leaders

Atlassian Community Events