Hi Atlassian Community,
I am running into an issue with an if-else condition. The automation needs to match a new comer joining date from one task description (issue.parent.Join Date) against today's date (now.jiraDate) to see if it is greater or equal to, and then perform a task.
The idea is to create tasks when they are needed (i.e. in sequence) and not all at the same time.
The automation rule:
1. Run everyday with JQL condition: Summary ~ "onboarding" and assignee = "Person1"
2. Then I do a match of today against the onboarding date from the task description (minus 21 days) because it needs to be 3 weeks before the a new person joins:
If block: {{issue.parent.Join Date.minusDays(21)}} = {{now.jiraDate}}
- If match, then create a sub-task
3. Same here but with one week ahead
Else-if block: {{issue.parent.Join Date.minusDays(7)}} = {{now.jiraDate}}
- If match, then create another sub-task
4. And here after he/she joined
Else-if block: {{issue.parent.Join Date}} <= {{now.jiraDate}}
- If match, then create a sub-task
- And another task
5. Else -> This should do nothing
- add value to audit log: Do Nothing
Error: I am receiving this error and not sure if it is an issue with the logic or format of the dates?

Here my automation process:

