How can I prevent time logging under certain criteria in Jira?

I've been asked to set up a state that will prevent users from logging work on specific issues in a project, despite the fact that they will have permission to log work on other issues.

The scenario is quite specific to our internal process, but it would be similar to a professional services company having a "Customer has been billed" status on an issue where any further hours cannot be logged. This is a contrived example so please forgive the flaws :)

Can I set it up such that an issue status prevents time logging? It seems something simple enough that an option may already exist, but I cannot find the right switch.

Thanks

1 answer

1 accepted

Setting the property 'jira.permission.work.denied' to 'denied' for the workflow step(s) for which you want to prevent logging should do it.

We usually set this on the 'Verified' step so that no further work can be logged once the issue has been signed off by QA.

That was easy, thank you!

Hi all.

Sorry to resurrect this but I want to keep a history of my issue alongside your solution.

I have changed the Closed Step Property to jira.permission.work.denied / denied and it seems to do the trick!

However, it looks like the Transition Screen (to Resolve/Close issue) is no longer accepting the log work input. So, the Log Work field appears, I enter time, but the time is not saved (no error takes place, not even in the Atlassian logs!)

Looking into the Transition Post Functions, I see this in the following order (and according to Atlassian, these can't be reordered)

Set issue status to the linked status of the destination workflow step.
— THEN
Add a comment to an issue if one is entered during a transition.
— THEN
Update change history for an issue and store the issue in the database.
— THEN
Re-index an issue to keep indexes in sync with the database.
— THEN
Fire a Issue Closed event that can be processed by the listeners

So, I see what the issue is (the first step in the transition is to set the status to Closed, so no further work can be logged against), but I can't find the workaround! Can you help?

Thanks,

Jorge

also I have this problem and can not log work on transition screen after  changed the Closed Step Property to jira.permission.work.denied / denied

what is solution ?!

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

533 views 1 18
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