How to make logging hours field mandatory in Team-managed project?
Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.
Summary
How can we make a log hour field mandatory for a team-managed project so that a user can’t transition an issue to the next status till the log hours are logged?
Environment
Jira Cloud
Diagnosis
- Outstanding Public Suggestion which is currently In Progress: Ability to have Required fields in team-managed projects
Solution
- Create a new custom field(number) and set the default value of the field to zero, then set a workflow rule to the transition using the "Check an issue's field" obligating this field to be different than zero. My test field in this example is called "TM Estimated time".
Custom field:
Workflow rule:
The side-effect of the above is that Jira doesn't show a message saying the value of the field is required and only after the value is different than zero the user will be able to transition the status.
My workaround in this scenario was adding a **REQUIRED** in the field name to make it more visible to the user.
2. When restricting the transition to Done I also used the "Check an issue's field", but this time the value must be zero to allow the transition.
I have recorded the issue view response here in this video: JST-758691mp4.mp4