Hello,
I am trying to create an automation for a date picker custom field 'Original Target End" to pull the first inputted target end date when the current 'Target End' date has been changed. So far, I have created the below but I'm getting an error that says history searches are not supported for Target End field. I am unsure how to proceed, does anyone know the correct JQL to for this request?
"Target end" is not EMPTY AND 'Target end" was updated
The error you get is expected, the was operator can only be used with Assignee, Fix Version, Priority, Reporter, Resolution, and Status. Instead you would have to use the {{fieldChange}} smart value in order to get the previous value of the field.
@Mikael Sandberg I adjust the automation to the screenshot attached. It says the automation was successful, but the date did not get adjusted in my plan. Any thoughts?
What does your edit issue field look like?
This is it. I am not able to select 'Target End Date' in the drop down to copy into the custom field 'Original Target End'.
Your edit issue field should look something like this:
Just replace the smart value I'm using with {{fieldChange.fromString}}
In this case I need the automation to copy from the Target End date instead of the Due Date which is what is listed in your screenshot.
The copy is only if you are copying between different issues, you cannot use that to copy fields within the same issue. In that case you have to use smart values in order to do the copying.
@Mikael Sandberg I have never used smart values before and need a bit of direction. I found this as a resource and assume the correct format needed is {{issue.original.targetend}} ?
Automation smart values - issues | Cloud automation Cloud | Atlassian Support
@Hermeus {{issue.original.targetend}} is not a smart value unless you have an assets field called original with an attribute called targetend. What are you trying to do?