Page History
Section | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Features used to implement the example
Example: Set field depending on time passed since issue creation
I want to be able to set a multi-select (Yes/No) field based on whether the creation time is within the last 12 hours so that I can flag in an issue that this is a same day closure. This will be a post-function in the Resolve transition. How can I do the date/time comparison and the setting of the field?
You can do it using Copy parsed text to a field post-function with the following configuration:
Text to be parsed used is: {00057} - {00009} <= 12 * {HOUR} ? "Yes" : "No"
Note that:
{00057} is field code for "Current date and time"
{00009} is field code for "Date and time of creation"
Once configured, "Resolved Issue" transition looks like this:
Other examples of that function
Incoming Links | ||||
---|---|---|---|---|
| ||||
Related Usage Examples
Content by Label | ||||
---|---|---|---|---|
|