A validator (SR/JWME) defined in the workflow is not able to detect changes in the Transition Screen

Eliyahu Klein --CNTR January 5, 2025

 

 

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.

 

Screenshot 2025-01-05 140438.pngScreenshot 2025-01-05 140236.png

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 5, 2025

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.

Eliyahu Klein --CNTR January 5, 2025

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.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events