Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you want to show a warning under the Time Spent field for cases when the worklog wasn't entered for a ticket, consider using the following lines in theCustomizing workflows.
In addition you can use theisNullroutine to check whether the time was logged against the ticket before the transition.

Code Block
return false, "worklog_timeLogged", "<error message>";

Note

Custom fields must be referenced by id (customfield_id), while standard fields can be specified by one of the following keywords: summary, timetracking, security, attachment, reporter, environment, description, duedate. You can also check the Comment field, using the keyword comment.
The timetracking fields have different internal naming in this case, so you'll have to use the next mapping:

FieldKey
estimatetimetracking_originalestimate
originalEstimatetimetracking_remainingestimate
worklog start dateworklog_startDate
worklog time loggedworklog_timeLogged

...