I am creating a change management project within Jira.
I have built some automations that will send an email containing the information about the ticket I want to populate this message with the necessary fields:
We would like to inform you of an important change regarding [specify what is changing, e.g., policy, procedure, system, schedule]. This change will take effect starting from [effective date]. For the effective date I would like to use the custom field: "Planned start"
Key Details:
I want to include the data from the custom field "Planned start"
This custom field is a Date Time Picker
I am not sure how to find the ID for the custom field or the syntax for these either.
I want this entire email to pull from information from the ticket so it runs automatically without any external additions.
@Adolfo Casari I am getting a blank screen. Is there a page within Jira to add this at the end of the URL for it to work or where can I find the Jira base URL. Thanks again.
Hi @Tylor Seastrum ,
as Adolfo already explained you need to work with smart values:
https://support.atlassian.com/cloud-automation/docs/smart-values-in-jira-automation/
The base URL ist your Jira site: https://SITENAME.atlassian.net
@David Friedrich Turns out the {{issue.Planned start}} did work 20 minutes after posting this!
It returned the value of: "2024-07-26T07:30:00.0+0000" Is there a way to modify this to only give the year-month-day and then the time? Or would I need another custom field? The problem with making a new custom field is that this custom field logs the start date and time on the Change calendar and I would not know how to make another one to tie it to again as I was not the one who set this up initially.
Yes, you can. Check out this documentation of how to format dates:
https://support.atlassian.com/cloud-automation/docs/examples-of-using-smart-values-with-dates/
No need to create a new customfield.
Try {{issue.Planned start.format("yyyy-MM-dd")}}
Or review
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/ for all the available date formats. According to that docu
{{issue.Planned start.jiraDate}}
should also work.
Hi @Tylor Seastrum ,
From what I understood of your request, it seems that you would find an alternative for this using Notification Assistant for Jira Cloud:
The app allows you to set many different triggers that could help you with the task at hand.
Hope it helps.
Cheers,
Victor | Modus Create