Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to use workflow validators to force time logging?

I am trying to create a rule so when someones moves a card from one column to the next on my kanban board, it forces them to log the time spend resolving the issue.

I already have the Time Tracking and Log Work fields showing on the issues. I have tried to add the following Validator onto my workflow but even when I log time on the card it doesn't let me progress the issue:

"Field Time Spent should be modified during the transition"

Can anyone tell me how I can achieve this?

8 answers

Hi Leo,

 

See here:

 # https://confluence.atlassian.com/jirakb/how-to-make-jira-applications-fields-required-in-a-workflow-transition-691011903.html

 

It should be "Time Spent" field set as required during transition.

i.e. Fields Required -> Time Spent

 

My understanding is that on Cloud you should have this validator included by default as per the article, on Server you'd need a plugin as far as I know, such as JIRA Suite Utilities (JSU).

(Although there are others that can do this as well, not just JSU.)

 

Regards,

Radek

Hi there, I use the Jira Cloud and I put the validator on my workflow to require Time Spent, but although people have logged time, that does not appear to get calc'd and it will not allow us to progress the Issue, as it shows the "Please Log Time" comment.

 

Has anybody found a workaround to this?

 

Thanks,

Christie

Like # people like this

Found a solution, via answer a ticket that I sent to Atlassian:

Once you have the validator "field required" or "field value changed" for Time Spent, since this validation happens during a transition, you need to register that change during, not before.

For that you can Edit the transition with that validator and add a screen with the Time Spent/Work log (is the same) field. I even created a new screen to show only that field once.

It seems counter-intuitive, because the same reasoning could be applied to any other field, but well, it worked for me.

Hope it helps!

Like # people like this

That helped a lot! I was searching and googling for the way to do it nearly 3 days and that's the way to be done!!!

Have you tried the solution given from fran_quintero? That worked for me. 

I will give you some screenshots of what I have done and everyone is forced to log time.

I added a screen named mandatory time tracking. image_2021-03-04_111234.png

Then I went to my workflow and added this screen to my transitions image_2021-03-04_111436.png

Also I added a validator on the transition that needs the Time Spent to be modified during the transition

image_2021-03-04_111835.png

 

That's all !!!

That's the idea!

The check from a validator triggers during transitions, so if you want to force a value in a custom field to be written (i.e. Time Spent), you can add a screen in that same transition, only showing those fields that you want to be filled, and the check will be effective.

@Orestis Michos is given a marvelous, step by step, with screenshots, here :)

Disclaimer: I work for the vendor providing the following solution.

If you are interested in validating whether the time was reported **before** the transition (but not necessarily **during** transition) and you can afford the cost of extra app, you might take a look at our Clockwork Pro. It comes with a custom workflow validator for ensuring some worklog has been reported before transiting an issue to next status.

Same problem. Workflow Validator is not recognizing that Time Spent has a value even though I verified it with a JQL "key = ABC-18845 AND timespent != null" returned my test issue ABC-18845 which has a several log work entries on it. However, the workflow transition keeps failing on the validator for Time Spent has a value. 

Same here.

And same here. No news in half a year?

Same here. didn't find a workaround yet

I'm facing the same thing as @Christie Diedrick . Any updates?

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you