Hi,
I configured a validator in the workflow to check if the Epic (parent) of a Story contains a specific value in one of its fields. For example: "Epic type" (Custom field) == "Support".
Only if this condition is met, the status can be changed to Done.
This works well when the Story is linked to an Epic before I try to change the status. The problem starts when the Story is not linked to any Epic, and then a Transition screen opens asking me to select an Epic (parent). When I try to select a specific Epic from the list, even if it contains the desired value, the validator does not recognize the link to parent in real-time and therefore does not allow the Transition.
I tried the validator both in ScriptRunner and JWME. Is there a way to build the validator so that it recognizes the change made on the screen?
Important note - I tried to check via REST API if any change occurs when I change values on the Transition screen, and the answer is no, which makes it difficult for me to create the correct script.
Another important point - if I create a simple validator through Jira's default settings and ask it to detect whether an Epic exists, it does recognize that I added a new Epic in the Transition screen. From this, I understand that it is a function that can be detected in some way.
In the attached image, I included one of the examples of validators I tried (I tried many versions) and what happened after I added a valid Epic.
I would appreciate your help.
Hi @Eliyahu Klein --CNTR , would it be acceptable to have a Condition on the transition to require a parent (epic) before the transition could be attempted? This would allow the Validator to be assessed correctly.
Hi @Jack Brickey ,
Thanks.
The problem is that Condition is removing the following status without explaining why it doesn't appear. This could solve the issue, but it would harm the users and flood me with complaints.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.