Sum 2 type of custom filed.
Asked by kshridvipa7878:

Hi All,

How I can add 2 type of custom filed. Once Custome filed in a "Date format" \& 2nd is in a "Number filed"  
Filed name:

1. Full kiting Date: (In a date format)

2. Production days: (In number)

Ater adding the two-custom field, I have to automatically set a "Due Date" of that ticket.

Requirement: 15th April, 2024 (Full Kiting Date) + 5 Days (Production Days) = 20 th April, 2024 \[Due date\].

Hope I am able to explain in a detail. Please help me.

I am sharing screen shot which I have applied. That rule in showing success but I am not getting any "Due Date" on that ticket based on automation rule.

![SS_1.PNG](/t5/image/serverpage/image-id/317541iDC7A4F1C87796FD2/image-size/large?v=v2&px=999 "SS_1.PNG")![SS_2.PNG](/t5/image/serverpage/image-id/317542iE8067B394310F1E0/image-size/large?v=v2&px=999 "SS_2.PNG")

Thank you,

Dvipa


Answers:
author: Kalyan Sattaluri
body: Hello [@kshridvipa7878](/t5/user/viewprofilepage/user-id/5406446)

After your edit issue,

* click new component, action, choose "Log Action". Enter this smart value: {{issue.Full Kitting Date}}
* Then add another log action and enter this smart value: {{issue.Production Days}}
* Then add another log action and enter this value. {{issue.Full Kitting Date.plus(issue.Production Days)}}

Finally, trigger this rule and share Audit Log as your first screenshot to understand your values.

Thanks!

comments: author: kshridvipa7878
body: Hi Kalyan,

Thank you for your time.

Still I'm facing same issues, showing success but I am not getting any "Due Date".


author: Kalyan Sattaluri
body: Hello, Please share screenshot of audit log showing log values. There is something wrong with you smart values we need to review. Thanks!


author: kshridvipa7878
body: Hi,

Thank you for your message.

Once I transit the ticket from one status to another status, it showing blank under the "Due date" filed. I am sharing the SS of that automation rule and also sharing that rule which I have applied after Edit issues Filed. Please check!![SS_.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/317768i741FAA1AD04360B4/image-size/large?v=v2&px=999 "SS_.PNG")![SS_Log action.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/317772iDD1D2F46CE7FDE12/image-size/large?v=v2&px=999 "SS_Log action.PNG")![SS_Log action_2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/317770i5A465F34E9DC0B01/image-size/large?v=v2&px=999 "SS_Log action_2.PNG")![SS_Log Action_3.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/317769iCC44E2FA97EA91BB/image-size/large?v=v2&px=999 "SS_Log Action_3.PNG")

Thank you,

Dvipa


author: Kalyan Sattaluri
body: Hello [@kshridvipa7878](/t5/user/viewprofilepage/user-id/5406446)

The smart values using are not correct so calculation is not being done.

Can you share with me screenshot of the actual fields on the issue.. I think the name of the fields is incorrect..


author: kshridvipa7878
body: Hi [@Kalyan Sattaluri](/t5/user/viewprofilepage/user-id/5312306)

Thank again for your message.

I have attached the actual fields on the issue. Please check. ![Field.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/317797iB1C57234EFFCD987/image-size/large?v=v2&px=999 "Field.PNG")

Thank you,

Dvipa


author: Kalyan Sattaluri
body: Hello [@kshridvipa7878](/t5/user/viewprofilepage/user-id/5406446)

You have extra semi colon in the log statements, please change the values to exactly below:

* {{issue.Full Kitting Date}}
* {{issue.Production Days}}
* {{issue.Full Kitting Date.plus(issue.Production Days)}}

Also, in your edit issue, change the Due date value to

* {{issue.Full Kitting Date.plus(issue.Production Days)}}

Please make these changes and trigger rule and share screenshot.

You are almost there, I promise :)


author: kshridvipa7878
body: Hi [@Kalyan Sattaluri](/t5/user/viewprofilepage/user-id/5312306)

I have changed but facing same issues, not getting any date under the "Due date" field.

1.![Capture21.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/317826i2F5782C80A1F7018/image-size/large?v=v2&px=999 "Capture21.PNG")![Capture.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/317824iB2689BEA0678D6E3/image-size/large?v=v2&px=999 "Capture.PNG")![Capture1.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/317828iF785DFD0303E67F0/image-size/large?v=v2&px=999 "Capture1.PNG")![Capture2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/317827iFC9C99CDACE6BF85/image-size/large?v=v2&px=999 "Capture2.PNG")![Capture12.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/317829iF202A3AA407FEB4A/image-size/large?v=v2&px=999 "Capture12.PNG") 1. IF Condition JQL: "Full Kitting Date\[Date\]" IS NOT EMPTY AND "Production Days\[Number\]" IS NOT EMPTY

2. Edit issues: {{issue.full Kitting Date.plus(issue.production Days)}}

3. Log action: {{issue.Full Kitting Date}}

4. Log action: {{issue.Production Days}}

5. Log action: {{issue.Full Kitting Date.plus(issue.Production Days)}}

![Capture22.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/317830iCEE976B4F001CDF3/image-size/large?v=v2&px=999 "Capture22.PNG")Also I have attached SS of that rule, please check!

Thanks again for your time.

Dvipa


Tags: cloud

jira-work-management-cloud