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

Compare with Current View Page History

« Previous Version 4 Next »

On this page

Use case

Evaluate if a user has logged more than a certain amount of time in the latest worklog.


Configuration

Jira expression*

let wk = issue.worklogs;
wk[wk.length-1].timeSpent < 25200

Evaluate the duration of the last worklog of the issue without a transition screen.

This expression evaluates if the latest worklog was longer than 7 hours. The time logged must be expressed in seconds, e.g.  7 hours would need to be converted to 25200 seconds.

Variants

Jira expression*

originalIssue?.timeSpent != null ? issue?.timeSpent - originalIssue?.timeSpent <= 25200 : issue?.timeSpent <=25200

Validate the last worklog in a transition screen.

This expression checks if the last worklog was longer than 7 hours (25200 minutes).

Jira expression*

originalIssue?.timeSpent != null ? issue?.timeSpent - originalIssue?.timeSpent == 0 : issue?.timeSpent == 0

Evaluate if no time was logged during the transition.

This expression returns true if no time is logged in a transition screen.


Related use cases


If you still have questions, feel free to refer to our support team.