How to subtract one day from due date?

Bo Schlichting
Contributor
March 1, 2023

Hi

We use Jira cloud as Service Desk and Project management.

So when customers create a Change Request, will we create a linked issue, with the developer tasks. On both the Change Request and the linked issue have we activated the field Due Date. 

I have set up so that we automatically updates the Due Date field on the linked issue, if we change it on the customers Change Request. This is working fine.

The problem is that the Developers are seeing the date as "end of date", where the SLA might be the middle of the due date. Therefore do I need to keep one day for Service Desk employees to communicate with the customer.

So I need to subtract one day on the value in the linked issues.

This is the one I have set up where it just align the due date.

image.png

Thanks

Bo

1 answer

1 accepted

5 votes
Answer accepted
Stefan Salzl
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 1, 2023

Hi @Bo Schlichting 

You can use smart value manipulation for dates. See the following link:

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-date-and-time/#--

 

In your case it would be: (if I got your requirement correctly)

{{triggerIssue.duedate.minusDays(1)}}

 

Just set your "Edit issue" action to that value:

image.png

Hope this was helpful and solves your problem.

Best
Stefan

Bo Schlichting
Contributor
March 1, 2023

Amazing, one question waiting 30 minutes and then a perfect answer. :)

Thanks a lot that was exactly what I was looking for. 

Best regards

Bo

Like # people like this
Stefan Salzl
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 1, 2023

You are welcome ;) Thanks for that great feedback @Bo Schlichting 

I really feel honored. That means a lot to me 🙌🏼

Great to know it‘s working. Wish you a great day.

Best
Stefan

Like # people like this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events