I have two custom fields:
- Planned start date (customfield_121)
- Planned end date (customfield_120)
I want to create an automation that :
1. Updates the Planned start date to be the start date of the fixversion
2. Updated the Planned ednd date to be Planned start date + original estimate
The first requirement works well with this JSON to update Planned start date
{ "fields": { "customfield_121" : "{{issue.fixVersions.startDate.last}}" } }
BUT the second part ends in error "Error parsing date string", with this solution:
1. I have a variable "TimeTrackingDays", with smart value:
{{#=}}{{issue.timetracking.originalEstimateSeconds}} / (60 * 60 * 8){{/}}
2. I update the Planned end date (customfield_120) with this JSON:
{ "fields": { "customfield_120": "{{issue.customfield_121.value.plusBusinessDays(TimeTrackingDays.asNumber).jiraDate}}" } }
Any ideas on how to solve this and what is going wrong here?
Thank you alredy in advance!