Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Instructions

  1. Navigate to the desired workflow transition and add intended workflow to make the necessary changes in the edit mode.

  2. Select the required transition.

  3. Select the Post functions tab and click Add post function.

  4. Add the “Scripted (Groovy) Validator (JMWE app)” validator

  5. Add the below Groovy script:

    Code Block
    languagegroovy
    def parentId = issue.get("customfield_11601")?.get(null)?.optionId
    if(!parentId)
        return false
    def childOptions = issue.getAvailableOptions("customfield_11601").rootOptions.find{it.optionId == parentId}?.childOptions
    if(childOptions)
      return !!issue.get("customfield_11601")?.get("1")?.value
    return true

...