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?
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.
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.
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.