Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Restrict worklog when ticket is in done status

Srinivas Salver
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!
January 14, 2025

Hello,

 

I am looking to implement a rule where users can log work hours only within 30 days of a ticket being closed. After the 30-day window, logging hours should no longer be permitted.

 

Currently, I have the JMWE add-on and am exploring if there’s a way to accommodate this request using its capabilities.

 

I tried adding the following property:

jira.permission.work.denied

However, this property alone does not fulfill the requirement of restricting work log entries based on the issue closure date.

 

Has anyone implemented a similar solution or could provide guidance on how to achieve this using JMWE or any other workaround?

 

Thanks in advance for your help!

1 answer

0 votes
Thorsten Letschert _Decadis AG_
Atlassian Partner
January 14, 2025

Hey @Srinivas Salver,

Depending on your current rule consumption, your scenario should be doable using a dedicated status, e.g. 'Closed', and a scheduled automation rule, that

  • runs daily
  • searches for issues that have been resolved more than 30 days ago and are in 'Done' status (and optionally further clauses to adapt the query to your specific needs)
  • transitions those issues to the 'Closed' status with the jira.permission.work.denied property set.

community_scheduled-rule-to-closed_02.PNG

You should also be able to add a condition to the transition to 'Closed' so that only the automation user can run this transition.

Regards,
Thorsten

Manik Raaj January 14, 2025

@Thorsten Letschert _Decadis AG_  thanks for your input how does this automation rule validates only within 30 days of a ticket being closed users should have the ability to log the hours?


and after 30 days they shouldn't have the ability to log the hours which is in Done status. 

Manik Raaj January 14, 2025

@Thorsten Letschert _Decadis AG_  Thanks for the update. 

btw how does the automation rule validates? where users can log work hours only within 30 days of a ticket being closed.


Meaning users should have the ability to log the hours once the ticket is closed and after 30 days they should not have the ability to log hours. 

Thorsten Letschert _Decadis AG_
Atlassian Partner
January 15, 2025

Hey @Manik Raaj

Since you can't validate the actual work logging, this approach aims to transition the issue to a status where work logging isn't allowed anymore after the 30-day threshold.

Suggest an answer

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

Atlassian Community Events