I have set up an automation rule for the creation of an issue to trigger the creation of a sub-task. I have then set this sub-task to have a smart value in the due date field, to take the due date of the parent issue and minus 7 days using:
{{#issue.parent.duedate}}func=minusDays(7){{/issue.parent.duedate}}
When I run the rule by creating the issue type with a due date, the sub-task is created but it has no due date field. When I query where the due date field is I get the message:
"The field 'Due date' does not have value for issue DCOM-73 and will not be displayed on the view issue page. Set value for that field so that it shows up."
Why is the smart value field not pulling the date through? Thanks in advance!
Hey there Georgie,
Yeah it can be a bit confusing but when you use the "issue" in smart values, it refers to the issue that's in the current context (e.g. in this case, the issue triggering it) so issue.parent will actually try to find the parent of the "Broadcast" issue that just got created.
In your case, setting the due date of the subtask to:
{{#issue.duedate}}func=minusDays(7){{/}}
should work. Let us know how you go!
Cheers,
Mark C
Success! Thank you Mark!
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.