I created an automation rule that modify the Priority field in a story based on calculation of the number of days from today to the date entered to a story under field End date.
Here is the condition:

But keep getting the following error once i run the rule:
More details:
- I have admin permissions on this specific Jira project
- Even without the condition, when editing the Priority field is generating the same error
- I'm able to modify Priority field via the story itself
- Priority field is set for all issue types in this project
Need help to understand what is wrong.