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

Compare with Current View Page History

Version 1 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.

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

Variant for evaluation in transition screen

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*




issue.worklogs.length > 0? Number(issue.worklogs[issue.worklogs.length-1].started) < Number (new Date()) : true


Evaluate if no time was logged during the transition.

This expression returns true if no time is logged when executing the transiton.


Related use cases


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