In Jira service management, I have a couple forms created for managers to fill out when an employee or contractor are onboarding, and each created a ticket of either the employee-onboarding or contractor-onboarding type.
In the forms are checkboxes that can be selected to trigger an automation that create a subtask to create an account in one of our systems. There are a couple systems where we always create an account for employees but only sometimes create an account for contractors (e.g. company email account). Due to this difference there are two different kinds of checkbox fields, called required-accounts and required-accounts-contractor.
Is there a way to make it so an automation that creates a subtask to create an account in our password manager triggers if a ticket of the employee-onboarding type is created and in the required-accounts field the checkbox for the password manager is selected OR if a ticket of the contractor-onboarding type is created and in the required-accounts-contractor field the checkbox for the password manager is selected? These two events would have the same outcome.
If only the ticket type was different this would be simple, but since the employee and contractor required accounts fields are different I'm running into trouble trying to figure this out. I would prefer to not have to create a separate automation if possible.