Difference between condition and validition

Differnce between condition and validation 

3 comments

Conditions are checks that are done on the current issue status, that will decide whether a workflow transition is shown or not. For example:

  • is this current user a member of the role that is allowed to execute this transition?
  • is the value of a custom field permits me to execute a transition?

Validations are checks that are done when you execute a workflow transition (usually checks are done when an associated screen is shown). For example:

  • have I entered all the required fields in the workflow transition screen?
  • have I updated a field in the workflow transition screen, which allows me to progress thru a transition?

In a slightly simpler terms, conditions are evaluated even before the issue is shown to the user to decide if a workflow transition is valid for the user. 

Validations happens once the workflow transition is triggered when the user submits on the workflow screen. 

With the conditions, the button does not appear until they are met.  With validators in the past if the field was required but is blank or something then a red asterisk appears next to the field which gives the user more feedback than the button not appearing.  If the field is not visible on the screen then what feedback is provided to the user? Anything useful?

We are running JIRA server v7.7.0.  A hybrid could also be used for validators of some things then conditions of others to hide the button until it is at least close to ready.  If more feedback is provided then I would be inclined to use validators more than hide the button so that the user is provided feedback.  Would at least help in troubleshooting advanced workflow checks when the user can't do something they want rather than them just saying they don't have the button.  The permission helper also isn't helpful with advanced workflow options when there are more options than just permissions.

Comment

Log in or Sign up to comment
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

216 views 1 18
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you