Forums

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

Is it possible to make it mandatory for comments to be included before a task is closed?

Kristine Gemici
Contributor
May 1, 2025

Is it possible to make it mandatory for comments to be included before a task is closed? This can be either a pop up box for closing comments or for the already existing comments box. We are trying to make sure that further explanation has been provided before closing a task. 

1 answer

3 votes
Trudy Claspill
Community Champion
May 1, 2025

Hello @Kristine Gemici 

What type of project does this concern? Get the project Type information from the Type column on the View All Projects page under the Projects menu.

For a Company Managed project you can add a Transition Screen to the transition to your closed status. You can then add a Validator to that same transition to confirm that Comment is not empty. The screen will display when the user executes the transition. The Validator will ensure that they enter something into the Comment field to complete the transition.

Transition Screens are not yet available for Team Managed projects.

Kristine Gemici
Contributor
May 2, 2025

Thanks Trudy! This is a company managed project, so I will be able to roll it out to all projects if I can do that for the template; however, I was hoping that the mandatory requirement would come up for the user trying to close--- the idea is that when they try to select "Done" then a popup will show up requiring them to add a comment before it will allow them to close. We do not want a single person or group to be an owner of that. 

Is this possible? Atlassian actually implemented something similar but for when a task is deleted.. Jira now requires you to enter "delete" before you can delete a task. 

Trudy Claspill
Community Champion
May 2, 2025

Hello Kristine,

Yes it is possible, and that is exactly what the solution I describe does.

First create a screen to add to the "Done" transition.

All screens that you create will have the Comments field on them without having to add it explicitly. It is not possible to get a screen that has just a Comment field on it. You will have to add another field. Attachment is a "harmless" field to add.

Screenshot 2025-05-02 at 11.01.51 AM.png

 

Go to the Workflow that applies to the project/issue type where you want to apply this. Edit that workflow.

Select the transition to "Done". Confirm that the Screen setting says "None".

Screenshot 2025-05-02 at 11.06.52 AM.png

 

Assuming that it does, click the Edit button in the upper right. Set the Transition View field to the Comment screen you created.

Screenshot 2025-05-02 at 11.08.44 AM.png

Screenshot 2025-05-02 at 11.09.16 AM.png

 

Click the Update button. 

Go to the Validators tab for the transition and select Add

Screenshot 2025-05-02 at 11.15.18 AM.png

From the options available select "Field Required Validator". Choose that one and click Add.

Screenshot 2025-05-02 at 11.23.21 AM.png

In the Fields Required select Comment. Optionally add a message that you want to display if the user leaves the Comment field empty. Then click Add.

Screenshot 2025-05-02 at 11.17.23 AM.png

Publish the Workflow.

Now when you transition the affected issue to Done...

Screenshot 2025-05-02 at 11.12.23 AM.png

 

...a pop up dialog will display the Comment (and Attachment) fields.

Screenshot 2025-05-02 at 11.12.36 AM.png

If the user clicks the button to complete the transition without having entered a comment, the transition will not complete. If you put a message in the validator, that will display.

Screenshot 2025-05-02 at 11.19.11 AM.png

Like Hans Polder _Devoteam_ likes this

Suggest an answer

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

Atlassian Community Events