Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

How to get details for validators via groovy



I have found thanks to this thread :

that I can use the "getValidators()" method to the the validators associated to a transition. However, it returns me the validator object (I assume), and I want the name and the description of what it does.



allStatuses.each { status -> 
def relatedActions = eachWorkflowObject.getLinkedStep(status).getActions()
log.warn("For the status " + + " the available transitions are: " + relatedActions)

relatedActions.each { it ->
def validators = it.getValidators()
log.warn("For the transition " + it + " the validators are: " + validators)


For the transition Close Issue (resolveissue) the validators are: [com.opensymphony.workflow.loader.ValidatorDescriptor@3e54be25]

That;s great, but I would love to get information like: 

For the transition Close Issue (resolveissue) the validators are:  resolution field is mandatory. 

I tried with it.getValidators()*.name , or and it is blank.

What are the properties accepted by a validator, or the functions that can be used to get a readable description of the validator?


Thank you! 

1 answer

0 votes

Just go to the help page and find information 

Hi @Etiennealexh ,

Not sure what help page information you are referring to. I searched the , but couldn't find what I needed. If you know where that info would be, that would be helpful :)

Suggest an answer

Log in or Sign up to answer
Community showcase

The benefits of using Jira in different departments

Jira is a great tool to use across different departments. Forget that paperwork – switch to Jira and get that tasks done smoothly. Marketing Jira allows for a complete digital transformation of you...

95 views 0 5
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