Hi everyone,
I'll looking for a smart value to auto create a due date 2 weeks from the date scheduled. Due Date is the system date but the Date scheduled is a custom field. For example, my team schedules a date with a customer. I have a rule that moves the task to pending deployment lane when the date scheduled value has been created. I would like to have the due date be auto created to show 2 weeks from the scheduled date.
Please let me know if that is possible.
Thank you,
Alex
Hello @Alexis Gutierrez
Yes, that is possible.
You would use the Edit Issue action in your rule to set the Due Date field.
This page provides details about smart value functions you can use with date fields
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/
Look for the section describing
{{[date].plus[Unit]([number])}}
You would replace [date] with your custom field; i.e. issue.Date Scheduled, and replace [Unit] and [number] with appropriate values for your calculation.
Hi Trudy,
I tried this: {{issue.DateSchedule.plusDays(14)}}
It's not giving me creating the date but its also not showing that there is an error. In the log it's not showing there is an issue with the smart value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Alexis,
What is the name of the source field? Is it Date Scheduled (with a space) or DateScheduled (without a space)?
If you have not correctly identified the source field, the automation will not produce an error in this scenario.
To make sure you have identified the field correctly, you can also try adding a Log action to print out the value of the field to the rule's Audit Log.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have updated it to show the space but still the Due Date is not being populated.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What type of field is Date Scheduled?
What is printed to the Audit Log when you add a Log action to log the value of the Date Scheduled field?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm not sure what you mean by add a log action, that only shows the time it takes for the rule to work correct? Date Scheduled is a custom date field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Log is an Action that you can add to your rule.
https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Log-action
You can use it to add messages to the rule's Audit Log when a rule executes.
Click the Show More link to the right of an entry in the Audit Log to display the details for that entry.
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.