Creating custom workflow transition logic

In previous recipes, we have looked at using workflow conditions, validators, and post functions that come out of the box with Jira and from other third-party apps.

In this recipe, we will take a look at how to use scripts to define our own validation rules for a workflow validator. We will address a common use case, which is to make a field required during a workflow transition only when another field is set to a certain value.

So, our validation logic will be as follows:

  • If the Resolution field is set to Done, the Solution Details field will be required.
  • If the Resolution field is set to a value other than Fixed, the Solution Details field will not be required.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.143.5.201