Community Announcements have moved! To stay up to date, please join the new Community Announcements group today. Learn more
×In our company, we work with several Jira Product Discovery projects. To keep an overview, we use global custom date fields: "Idea Start" and "Idea Target End". These are both date fields, and in Product Discovery there is only the Idea issue type.
I would like to use these fields in the roadmap view of my Jira project. Technically, this works, but keeping both fields up to date is quite time-consuming.
That’s why I want to set up an automation that updates the fields automatically, depending on changes in the issue. For example:
When a new Idea ticket is created → set Idea Start to now and Idea Target End to +3 months.
When the workflow status changes to Discovery → update both fields (Start = now, End = +3 months).
When the workflow status changes to Done → update Idea Target End to now.
Has anyone implemented something similar, or is there a recommended way to set up these kinds of date-based automations in Jira Product Discovery?
Hi @Nicole Saenger -- Welcome to the Atlassian Community!
Are you trying to set date fields in the JPD Idea?
If so, that has a different format with a JSON expression represented as text, as compared to other Jira date or date / time fields.
For example, to set a JPD date field to the current date, please use this:
{
"fields": {
"customfield_12345": "{\"start\":\"{{now.jiraDate}}\",\"end\":\"{{now.jiraDate}}\"}"
}
}
And, you may use this how-to article to identify the custom field ID values for your fields:
https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/
Kind regards,
Bill
Welcome to the community.
That is possible using the date / time functions, For example, start with the {{issue.Idea Start}} and set / increment the pieces needed by adding the functions to the end.
jira-smart-values-date-and-time
To start with an example.
Rule issue creation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The "Idea Start" and "Idea Target End" are not listed on the selectable Drop Down List Options. I assume because these two are Global Fields?
Is it possible to specify these two fields using the JSON Code under the "more options"?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes this should be doable,
Use the custom field id's or the field name, but I would start with the custom field Id
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Where would I find the Field ID though?
And the JSON should look something like this?
{
"fields": {
"Idea Start": "{{now}}",
"Idea Target End": "{{now.plusMonths(3)}}"
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ok, just tried the above, but get an error message "The automation rule Test just failed with an error on your Jira instance" when trying to use it on an actual idea ticket.
Thea audit shows:
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.