Hey, We have a request type for new courses in our company,
Each user can ask for just 2 courses in one year, if they complete 2 courses
I want automation that will immediately move it to "Canceled" status.
Right now there is 2 statuses that define a complete course: "Done" and "Course Incomplete".
So I made JQL that at first search if this user has in the same year tickets that in that status, and after made smart value condition to check if he has 2.
but the automation stop when i created 3 ticket by me one and that's right because i can make more than 2 tickets but i want to cancel him if i got another 2 that already closed this year.
im attach a picture of my automation.
this is the JQL
reporter = currentUser() AND status IN (Done, "Course Incomplete") AND created >= startOfYear() AND created <= endOfYear()