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:

  1. Go to  Project settings > Workflows > Edit the desired workflow and click on the Diagram view
  2. Select the transition to the "Closed" status
  3. Under Options, click on Validators
  4. Click the Add validator button
  5. Select the Field Required Validator option
  6. Click the Add button
  7. 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.
  8. 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
  9. Leave the 'Ignore Context' checkbox blank
  10. Click the Add button
  11. 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 .

最終更新日 2024 年 11 月 26 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.