+ 2 days to the Due date if I change a date field

Mattia Battan March 11, 2024

Hi all, I need to do an automation that when I change the date of a custom field, it adds 2 days to the "due date".
The custom fiel is called: "Final Solution Date", I thought it was enough:
{{Final Solution Date.plusDays(2)}}
It doesn't work, though.

How can I do it?
Thanks

1 answer

1 accepted

0 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 11, 2024

Hello @Mattia Battan 

To provide assistance to you on an Automation Rule there are a few things that we need:

  1. Screen images that show us the complete automation rule
  2. The details of the automation rule execution from the Audit Log, for an execution that did not give you the expected results.
  3. More details about exactly how it did not work. What value did you expect? What value did you actually get?

With that information we will be better able to suggest fixes.

Mattia Battan March 11, 2024

Thank you very much for the very quick response.
This is the automation, very simple, however it doesn't let me save it.
The error I think is really on the smart value which is not allowed.

2024-03-11 17_07_01-Clipboard.jpg

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 11, 2024

There are two problems I see in this step, only one of which is highlighted.

First, the issue that is not highlighted is that you are using an incorrect smart value to set the Due date field. It needs to be:

{{issue.Final Solution Date.plusDays(2)}}

Second, the problem that is highlighted is this:

Screenshot 2024-03-11 at 9.18.43 AM.png

Jira is telling you that "Custom Field Name" is not a valid name for a field. What is the actual name of the field you want to set? Is it really "Custom Field Name" or is it something else?

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 11, 2024

Hi @Mattia Battan 

Yes, and...to Trudy's answer:

Smart values are name, spacing, and case-sensitive, and sometimes they do not match the displayed name of the field on the issue views.

To confirm you identify the correct smart value for your field, Final Solution Date, please try the steps in this how-to article: https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

 

Kind regards,
Bill

Mattia Battan March 12, 2024

I solved it by adding "issue." in front of the custom field name.
Thank you very much

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 12, 2024

Hello Mattia,

If our responses helped you solve your issue please consider clicking the Answer Accepted button. That will mark you post as Solved, and help others searching for help find the posts with validated solutions.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events