How can I enable automation when validators in Workflow are in place, causing automation to fail.

Sean Saxon July 17, 2024

Good day all.

 

TL;DR - validators in place for Workflow transitions, that require a comment before changing status.  Automation fails on this validators.

Workflow transition - when someone transitions a ticket to Won't Do, a comment is required before the ticket can be transitions into the Won't Do state.  This is create, as it requires engineers to give a reason as to why they will not do it. 

I've created automation to transition all child tickets to Won't Do, when the Parent ticket is set to Won't Do or Duplicate, however, the automation fails, due to the validation mentioned above.  

Is there a way to keep the validation in place and create automation that will add necessary comment so that the validation will not fail? 

2 answers

3 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 17, 2024

Hello @Sean Saxon 

Welcome to the Atlassian community.

Yes this is possible. 

Create a separate transition to the Won't Do status that does not include the Validator.

On that new transition set the Condition for Hide from User.

Screenshot 2024-07-17 at 11.46.34 AM.png

That will make that specific transition available only to Workflows and the REST API. Automation Rules use the REST API so it will be available to the Automation Rule.

Then set the Automation Rule to use that specific transition.

Screenshot 2024-07-17 at 11.50.41 AM.png

Sean Saxon July 18, 2024

I spoke too soon. 

The automation is still failing.  The reason I thought it worked originally, was due to a field being populated, that was part of validation.  The validation passed, as their was a comment in the field.  

In your screen cap, you pointed to "+ add regex to distinguish between multiple transitions to the same status ", which I am assuming I need to populate to call the correct transition.  Please confirm.  If that is the case, then I'm going to need some assistance with RegEx. 

Like Trudy Claspill likes this
0 votes
Sean Saxon July 18, 2024

.

Suggest an answer

Log in or Sign up to answer