Forums

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

Can I automatically reset a field after it triggers a validation error?

Phil Bustin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 6, 2023

An automation triggered by an issue transition sets a single selection field ('Ready') value to 'Yes', and then if a condition is met (checkbox checked, but associated text field empty), sets the single selection field value to 'No' and populates a text field ('Automation message') at the top of the transition form with a brief explanation of the user error.

Then, in the aforementioned transition, a validator that requires the 'Ready' field value to be 'Yes' stops the transition from completing and displays an error message at the top of the transition form.

At this point, I would like the user to be able to correct the condition that triggered the validator, and complete the transition.  However, that doesn't work; nor does clicking Cancel, clicking the transition again, and correcting the condition. 

The only action that allows the transition to work after the validation error is manually resetting the 'Ready' field value in the transition screen.  I also tried:

1) creating an automation to reset the 'Ready' field, triggered by any change in the field value, but it worked too well, allowing the transition to go through with the validator not firing.

2) Adding a post-transition action to reset the 'Ready' field to 'Yes', but that seems to allow the transition to go through even with the wrong condition--same as manually resetting the 'Ready' field to 'Yes'.

1 answer

1 accepted

0 votes
Answer accepted
Phil Bustin
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 7, 2023

I have decided to have the automation notify the user instead of preventing the tasks from being created.  The notification will include an instruction to update the empty field in both the issue and the subtasks.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events