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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Transition. Validator. Check two data fields?


I have a transition to status CLOSED.

The transition screen has RESOLUTION field with three options to choose:

- obsolete

- finished

- declined

If the resolution chosen is "finished" and a custom filed FIELD-XYZ is empty, then the transition should stop.

How can I make it?



1 answer

2 votes

You'll need to find an app that can provide a "validator" for that.  Either one that codes for it directly or one of the scripting ones that can provide a place where you can write the code.

If you had Scriptrunner for example, then the code for a validator could be as simple as

def cf = ComponentAccessor.customFieldManager.getCustomFieldObjects(issue).findByName(customFieldName)
assert cf : "Could not find custom field with name $customFieldName"

if ( "finished".equals(issue.getResolution().getName()) and issue.getCustomfieldValue(cf) ) {assert cf : "field xyz needs to be filled if you resolve an issue as finished" }

@Nic Brough _Adaptavist_ 

Sorry, your suggested code does not work. What should I change or add?



Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Announcing the waitlist for Jira Work Management

Hey there Cloud Community members! We’re excited to give you the first glimpse of the new home for business teams on Jira — Jira Work Management. Jira Work Management is the next generation of J...

134 views 3 7
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you