I have a date in a form of string e.g. "05-05-2024"
How do I set this as Due Date? I tried different takes on it but still can't find the right way. Documentation only describes how to set relative dates which is not my case
I tried so far:
{{05/05/2024}}
{{05-05-2024}}
{{"05-05-2024"}}
{{"05-05-2024".toDate.jiraDate}}
{{"2024-05-05".toDate.jiraDate}}
etc, non worked
This should work (assuming the string is in a text field):
You'll need to...
---
Assuming I understood the need, let us know if this works!
Ste
This sounds pretty close but still doesn't work yet
I will clarify my needs:
My date is coming not from a custom field but from a fixVersion name. I successfully extract that part by
{{issue.fields.fixVersions.name.substring(0,10)}}
I know it works as I set this value to Description.
I created a variable out of it and then set it to Due Date but I get error:
Failed to get value for issue.fields.fixVersions.name.substring(0,10).toDate("dd-MM-yyyy": {{issue.fields.fixVersions.name.substring(0,10).toDate("dd-MM-yyyy"}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I had error there ( ")" was missing)
Which I fixed and then I get error:
(The duedate must be of the format "yyyy-MM-dd" (duedate))
Even though I changed my format
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Solution that works
{{issue.fields.fixVersions.name.substring(0,10).toDate.format("yyyy-MM-dd")}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is something strange about your question. If you want to set a fixed date, you don't need to use smart values, you can just specify the date in the due date field in your automation rule:
But that would not make much sense as a requirement, wouldn't it? You would be entering the same due date every time. So something tells me you do need something dynamic after all. What am I missing here?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you want to copy the data of one custom field to due date, you need to reference that field in your smart value. Suppose your field is called "Some date", your smart value would look like this:
{{issue.Some date}}
(referencing the exact name of the field).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I will clarify my needs:
My date is coming not from a custom field but from a fixVersion name. I successfully extract that part by
{{issue.fields.fixVersions.name.substring(0,10)}}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.