How to Make a Field Required Before Closing an Issue in Jira Cloud
Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.
要約
As an administrator, you may want to make a field required before closing the issue and the user shouldn't be able to close it if that field is empty.
診断
If you make this field as required in the field configurations, you won't be able to create the issue without a value added in this field which may not be your actual intent.
ソリューション
You can utilize a workflow validator in the transition to the "Closed" status to achieve it. The step-by-step process is given below:
- Go to Project settings > Workflows > Edit the desired workflow and click on the Diagram view
- Select the transition to the "Closed" status
- Under Options, click on Validators
- Click the Add validator button
- Select the Field Required Validator option
- Click the Add button
- For Fields required for this transition: select the custom field you want to be required. If your field does not appear from the drop-down, click the drop-down and then start typing the name of that field to select it.
- For Error message column, specify an error message if the condition is not met. This is optional but recommended so the user understands what they missed
- Leave the 'Ignore Context' checkbox blank
- Click the Add button
Click on Publish Draft > Publish to save the changes to the workflow.
By adding this workflow validator, you won't be able to complete the transition to the "Closed status" if the required field is empty. For more information about workflow, please visit Configure advanced issue workflows .