Our new Appfire Documentation Space is now live!

Take a look here! If you have any questions please email support@appfire.com

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 35 Next »

Abstract

This code snippet adds a certain number of days to a Date/Date-Time picker field.

Logic

Access the Date/Date-Time picker field and add the number of days to it.

SnippetĀ 

<Date Object> + <Number of days>

Placeholders

PlaceholderDescriptionExample
<Date Object>Access a date fieldissue.get("created")
<Number of days>
The number of days to be added5

Examples

The output of this code snippet is a Timestamp which you could use in a Groovy expression, for example to:

  • Calculate and display a date field to issue created plus 5 days

    issue.get("created") + 5
  • Calculate and display a "Planned Delivery Date" as the 10 days from today

    new Date() + 10

References

Filter by label

There are no items with the selected labels at this time.

  • No labels