Hello,
I am trying to update a custom field Date in my issue with the Release Date of my Fix Version.
I am using {{issue.fixVersions.releaseDate.format("d/MMM/yy")}} which works in the comments, but does not work in the Date custom field I have.
I have tried different formats and the dates appear correctly in the comments but the field does not get updated. Can anyone help with the right format?
When I edit my issue Jira says it expects the d/MMM/yy format.
Best Regards
Hi @Lara Lopez
Can you try this :
{{issue.fixVersions.releaseDate.format("yyyy-MM-dd")}}
Also look at the audit log of your rule, you should find which format is expected.
Thanks Mohamed it worked!
That format is nowhere in our dates, but it seems it was the right one!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Lara Lopez ,
You can also use the predefined "jiraDate" format:
{{issue.fixVersions.releaseDate.jiraDate}}
There are a number of predefined date and time formats available - see https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/ for examples.
Cheers,
James
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks James, I tried a lot of formats because the edit screen said d/MMM/yy but our view is dd.MM.yyyy. It seems I overlooked in the documentation the jiraDate possibility.
Thanks a lot!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have a similar problem, copying Due date (system) to a Target End Date
{
"fields": {
"customfield_12856": "{{issue.Due.format("yyyy-MM-dd")}}"
}
}
Error: The Target end must be of the format "yyyy-MM-dd" (customfield_12856)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.