How to make Work Log as mandatory for Every Transition in Jira 4.0?

I have one workflow now i want that when it will go to from Development status to Testing Phase it should ask for Work Log, without worklog it should not allow users to do the transition go to the next step?

5 answers

1 accepted

2 votes
Accepted answer

Add 'Time Tracking' field to your screens and add a 'Field Rquired' validator in the workflow transition for 'timespent' field.

The validator is available via the JIRA Suite utilities plugin!

Thanks a lot sir its working fine.:):)

I have 'Time Tracking' field added to all screen (create, edit and view) and I added 'Field required' validator for Time Spent field, but it doesn't work. It throws me an error message saying (even I log work before executing the transition):

Workflow Error

Time Spent is required.

It seems that you have tried to perform an illegal workflow operation.

If you think this message is wrong, please contact your JIRA administrators.

Do you have an idea what is wrong? We have JIRA 4.4.5.

Thank You

Daniel Stava, have you had any answer to your problem with the Workflow Error? I'm having the same problem. It looks like its a bug from JIRA Suite Utilities Plugin, but I'm still not sure.

If you have an alternate path for that issue, please share.

Thanks in advance.

Hi,

the trick is, that you have to assign screen with "Log work" field to a transition and add "Fields required" validator for "Time Spent" field.

In my case, i've created "Log Work Screen", where is only "Log Work" field and I assign the screen to a transition, where I've set validator for "Time Spent".

Did this help?

Daniel, I assume that solution won't work if the users logged work before getting to that screen.

My scenario is: an user is assigned to an issue, log work every day on the issue, and when the user close the issue we want JIRA to validate if the user logged work on the issue as he was supposed to do.

So, logging work when closing the issue will not be a solution for me.

Any other ideas are welcome.

Thanks.

I found a solution!

I used the built-in script validator from Script Runner and the condition "issue.timeSpent".

Now, JIRA doesn't allow closing the issue without work logged on it.

Daniel Stava, have you had any answer to your problem with the Workflow Error? I'm having the same problem. It looks like its a bug from JIRA Suite Utilities Plugin, but I'm still not sure.

If you have an alternate path for that issue, please share.

Thanks in advance.

It works for me now, add Time Tracking field, and a validator for Time Spent. But you have to check the tiny Log Work checkbox to see the time-related fields

We're getting the same issue that Daniel Stava is. Wish someone could find a work around for the cloud service edition.

Did you manage to do it? I'm looking for the same thing.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Agile

Tips on Running a Sprint Planning Meeting from an Atlassian PM

I have run and participated in hundreds of planning meetings over the years, and have seen the gambit of good to bad to terrible. With a little bit of prep, you can run really effective planning meet...

17 views 0 1
Join discussion

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you