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

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