Hello community,
1 Challenge: I am facing an issue with a JQL condition that has a date diff. function which is not executed when the rule runs with a scheduled trigger (CRON) every working day.
2 Rule: The objective of the rule is to create tickets based on a certain time event i.e.
when the parent ticket is created 21 days prior to the date when a new person joins the company AND if it is 7 days to the joining date, the ticket for onboarding must be created. For the case when it is less then 21 days, I have another rule (with the logic vice versa) which is facing the same issue.
In my else-if branch I have besides other conditions a JQL condition with the following requirements:
{{[issue.parent.created].diff([issue.parent.join Date]).days>21}}
However, this condition is not executed by the automation when the rule runs.
3 Dates: I take the creation date of the parent ticket and the join date from the description that is inserted via a short code section as you can see below.
Creation Date
Parent Join Date
4 Example: As you can see in the example below, the rule created the onboarding tickets for the following parent ticket where you can see that the date diff between the creation date and the join date is smaller than 21 days.
1st July -> 23rd June = 8 days
I have the feeling that it could be related to the way the two dates are formatted but not 100% sure. I hope someone from the community can help.
Thanks in advance!
Maxim
Hi Maxim,
I would say let's break this down into chunks and do one piece at a time to make sure it is working.
So, copy your existing rule and take out everything except the initial Scheduled trigger with the JQL in it and the email. But change the email to just email to you.
Then create a test card that meets the criteria in your JQL. But change the JQL to include the key of the test card - so whatever you have in the JQL just add "and key = ABC-123" where that is the test card.
The manually fire the scheduled trigger and see what happens. If success, then repeat the test, but change the test card first to have a join date that would put the card out of range. Manually run the test again and see what happens.
I would start there first.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.