How can we enforce a condition in JIRA where tasks must have a timelog before being moved to Done.

Usama
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 15, 2024

How we can introduce a condition in JIRA that the tasks when moved to Done, JIRA throws an error if there is no timelog in those tasks. And when the user enters the timelog, the task can be moved to Done.

2 answers

1 accepted

1 vote
Answer accepted
Valerie Knapp
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 15, 2024

Hi @Usama , welcome to the community and thanks for your question.

You can use a workflow condition for this, but what that achieves is just to hide the transition until the work log is completed. The problem with this approach is that it's not obvious to the end user why they can't put the issue in done. 

https://support.atlassian.com/jira-cloud-administration/docs/configure-advanced-issue-workflows/ 

Here is what the workflow condition looks like when it is implemented:

image.png

A better approach would be to use a validator, which checks that the field has been filled in but during the transition, so, if you have already logged time in the issue, you wouldn't be able to transition the issue anyway. Validators like this work best with a transition screen, so, when you go to transition from 'In Progress' to 'Done', you can make a screen pop out where you are prompted to log your time, and display a message which explains you can't put the issue into the final state until the work is logged.

Here is what the implementation with a workflow transition screen and validator looks like:

image.png

image.png

Then, when I put in some time and click on 'Accepted', the issue goes into Done.

You will need to read the documentation on how to set up the workflow validators to help you understand how to implement this but it's not difficult technically. If you get stuck, you can always ask for more help here.

Cheers

1 vote
Luis Andino Rodriguez March 15, 2024

If the project is a company management project you could use a transition screen on the workflow with a field for “log work”.

This article goes over screens on workflow transition. 
https://confluence.atlassian.com/jirakb/map-a-screen-to-a-workflow-transition-in-jira-company-managed-projects-720634253.html

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events