Make time logging mandatory before transitioning an issue for each transition

Kaladin Stormblessed December 14, 2024

For all workflow transitions, how can I create a condition that allows the person to log their "Time Spent" before they can transition the issue? I'm asking because a lot of the time, people do not log work.

For example, let us say there are four steps in the workflow: "to do"--> "in progress"--> "testing"--> "done".

I want to create a condition such that whenever someone tries to transition from "in progress" to "testing" or from "testing" to "done", they can't do so without specifying the time spent. 

I have already implemented this in some fashion by creating a condition for transition, which checks if "time spent" is > 0 for Numbers (check photo for reference). But this condition allows for later transitions to happen if work is logged in previous steps. So, using this condition, someone can transition from "testing" to "done" without logging their time spent because a time spent value already exists from the previous transition of "in progress to "testing." 

How can I create a condition such that at each transition, it requires a "time spent" entry?

Screenshot 2024-12-16 at 10.41.52.png

3 answers

3 accepted

2 votes
Answer accepted
Shiva Kumar Hiremath
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 15, 2024

Hello Aditya,

You can configure the transition screen logwork field in that and configure the validator to to make field mandatory which transitioning.

0 votes
Answer accepted
Nathan Phillips
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 16, 2024

Hello @Kaladin Stormblessed,

Just as others have mentioned, you could begin by creating a screen which contains all of the necessary fields you want your users to fill out.

Then from there, you can create a new workflow condition which requires that field to be filled out before the transition to the next status can occur!

I recommend you check out our documentation on advanced workflows

0 votes
Answer accepted
Atlass Monster
Banned
December 14, 2024

Hello @Kaladin Stormblessed 

What you are asking is called "Screens" : https://support.atlassian.com/jira-cloud-administration/docs/configure-issue-screens/

You can also add an workflow condition to check if the "Log Work" is having any value before the issue is transitioned.

Screenshot 2024-12-14 203144.png

With Screens you can suggest to the users to log time with the Screen and with Workflow conditions you can make sure they actually did so.

If my solution helps be sure to accept it, if not I will be more than happy to help you further :) 

Atlass Monster
Banned
December 18, 2024

@Kaladin Stormblessed I have seen that you have updated your answer and my solution wasn't what you seek. Sorry for the late answer.

Here is what I can suggest further: 

As Shiva Kumar have written, you can use validator:

1. Navigate to the workflow in use and select the Transition/s that need the validators:

Add validators.png

2. For the validator select "  Field has been modified Validator Field value must be changed during the transition. " Option from the list. 

3. On the next step edit the settings to fit your needs:

Validate.png

I hope this work for you. Sorry if I mislead you with my last answer.

 

Suggest an answer

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

Atlassian Community Events