Hi Team,
How to put these rules into some script that would run automatically on an everyday basis? And if the ticket was created and is still in open status, then the script runs and updates the priority based on what date is it now.
For example, I created the ticket and need by date also today date, and I did not work on the ticket and it is still in open status (Priority is Major, if the Need By date is today), and tomorrow the script will run automatically and update the priority to Critical (Need By Date is past date) based on the below conditions.
Here Need By Date is date field.
- If issuetype in (Bug, "Change Request") AND Need By Date is a date in the past then set Priority=Critical.
- If issuetype in (Bug, "Change Request") AND Need By Date is today then set Priority=Major.
- If issuetype in (Bug, "Change Request") AND "Escalation?" = No AND Need By Date is in the future then set Priority=Minor.