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 8 Current »

Abstract

This code snippet sets an Estimate field to the difference of two specific dates of the issue. 

Logic

Access the date fields of the issue and return their difference

Snippet 

if(<Date object>)
{
  return <Date Object> - <Second Date object> + "d"
}

Placeholders

PlaceholderDescriptionExample
<Date Object>
Value of the first date fieldissue.get("duedate")
<Second Date object>
Value of the second date fieldissue.get("created")

Examples

The output of this snippet is a String representing a duration which you could use in a Groovy expression, for example to - Set an estimate field. Eg: Set the Original estimate of the issue to the difference of the issue creation and Due date in

  • one of the Set Field Value post-functions
  • the Create issue post-function under Set fields of new issue section

    if(issue.get("duedate"))
    {
      return (issue.get("duedate") - issue.get("created")) + "d"
    }

References

Filter by label

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

  • No labels