I want to trigger the same rule when a new ticket is either created or updated. How is this possiblee without replicating the rule many times?
Hi @Andre Duarte -- Welcome to the Atlassian Community!
There is a Multiple work item events trigger that would allow selecting multiple things, such as both create and update. When using that one, I recommend two things to reduce risks / improve troubleshooting:
#1) The create work item event with rules has a racetrack timing defect, and can start a rule before all data is available. This can cause weird symptoms and errors.
I recommend always adding the Re-fetch Work Item Data action immediately after the triggers Work Item Created or the Multiple Work Item Events (with create selected). This will slow the rule slightly, and reload the data before the steps proceed.
#2) After the trigger, add a Log action to write the {{eventType}} smart value to the audit. That will help to know when it was a create or update event:
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--eventType--
Kind regards,
Bill
Amazing. This is going to solve my problem.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Awesome! If this ends up solving it, please consider marking this question as "answered" to help others with a similar need find solutions faster. Thanks!
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.