Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Transition validator is not applied

Stefan.Moebius
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 26, 2021

Alright, so I have this Jira project, which started off with all workflows, screens, etc being shared with other project. I'm now trying to do some customization on this project, in particular, requiring a field to be set before setting tickets to Resolved.

I started with the first ticket type, User Story.

  • Copied the generic User Story Workflow into "P User Story Workflow"
  • Edited the "P User Story Workflow", clicking on the Transition to Resolved
  • "Edit draft", added a Validator (Simple Scripted Validator) with a script of just "!issue.components.isEmpty(), with an error message, and a field selected.
  • Saved the validator
  • Copied the generic workflow screen to "P Workflow Screen", added the field in question to this screen, and configured the transition to use this workflow screen.
  • Published the workflow
  • Duplicated the generic Workflow Scheme to "P Workflow Scheme"
  • Assigned the "P User Story Workflow" to ticket type User Story, everything works just fine! Especially, the Validator shows as having been run and succeeded or failed. Also tried logging in there, which worked fine as well.

Now I tried to do the same thing for the next ticket type, Defect.

  • Copied the generic Defect Workflow into "P Defect Workflow"
  • Edited the "P Defect Workflow", clicking on the Transition to Resolved
  • "Edit draft", added a Validator, same as before, saved the validator
  • Configured the transition to use the "P Workflow Screen", created before
  • Published the workflow
  • Assigned the "P Defect Workflow" to issue type Defect in the previously created "P Workflow Scheme"

Alas, this doesn't yield the expected result. The transition screen on a test ticket does show the added field, but the validator is not run. What am I missing?

 

1 answer

0 votes
Martin Bayer _MoroSystems_ s_r_o__
Community Champion
February 26, 2021

Hi @Stefan.Moebius you obviously know how to set it up (good job), so it must be some stupid small mistake :) Can you share some screenshots. More eyes see more :)

Suggest an answer

Log in or Sign up to answer