I am cloning an issue using the clone functionality. And an automation is running that is check if the cloned issue has particular fields(ex. due date) and clears them. Additionally I have an automation that sets due date based on priority. And Priority has four values high , normal , medium , low also there is no null or empty value for this field.
There can be two scenarios:
1) Cloned issue can have the same priority as the original one and user did not update this field. Automation will clear the old due date set the new due date based on the created date.
2) Cloned issue can have different priority , user will update this field after cloning. Automation will trigger and update due date based on the new priority value.
How do I achieve this.