---
title: "First/Last Comment Date Custom Field"
canonical: "https://support.appfire.com/space/JEPC/11337754/First%2FLast%20Comment%20Date%20Custom%20Field"
format: markdown
---
> Macro (aura-html)

> Macro (button-handy)

> Macro (button-handy)



> ℹ️ This page is about **JEP Cloud**. Using **Jira On-Prem**? Click the **On-Prem** button above.

> Macro (excerpt)
> 
> <span style="color: #000000">Calculates the issue's first/last comment date.</span>

<span style="color: #000000">The Comment Date custom field does exactly what it says on the tin – it calculates the issue's first or last comment date.</span>

### To create a First/Last Comment Date Custom Field, follow these steps:

1. Navigate to **Apps** > **Enhancer Plugin for Jira** > **Custom Field Configuration**.
2. Click the **Add New JEP Custom Field** button.
3. Click the **Comment** tab on the left-hand side of the dialogue.
4. Select **Comment Date**, then click **Add custom field**.
5. Fill in the dialog box:
  - Create a **name** for the custom field.
  - Specify **First or Last** – if **First** is selected, the custom field will calculate the first comment’s date. If **Last** is selected, then the custom field will reflect the last comment.
6. Click the **Save custom field** button to create the custom field. The custom field will now appear in the issue view:

Once created, the Comment Date custom field can be used for sorting and searching in the issue navigator, allowing you to filter and find issues based on the comment date. 

> ℹ️ **Remember to add this custom field to the appropriate screens so that it can be visible and accessible when working with issues.** If you don’t know how, check out the [Jira documentation](https://support.atlassian.com/jira-cloud-administration/docs/add-a-custom-field-to-a-screen/).

![image](media://e349b27b-57ad-4c53-b25a-40f8a15edbf9)

> ℹ️ It's important to note that for new or updated issues after creating this custom field, the custom field values will automatically update correctly. However, for existing issues, **it's necessary to ****[regenerate the issue](https://appfire.atlassian.net/wiki/spaces/JEPC/pages/11338384)** in order to see the correct values associated with the Comment Date custom field.

- <span style="color: #000000">Fill in the dialog box:</span>
  
  - <span style="color: #000000">Create a </span><span style="color: #000000">**Name **</span><span style="color: #000000">for the custom field.</span>
  - <span style="color: #000000">Specify </span><span style="color: #000000">**First or Last**</span><span style="color: #000000"> - if </span><span style="color: #000000">**First**</span><span style="color: #000000"> is selected, the custom field will calculate the first comment and if Last is selected, then the custom field will reflect the last comment.</span>
- <span style="color: #000000">And then click on the </span><span style="color: #000000">**Add Custom Field**</span><span style="color: #000000"> button. That's it.</span>


<span style="color: #000000">This custom field can be used to sort or search in issue navigator.</span>  


> ℹ️ <span style="color: #000000">Do not forget to add this custom field to the appropriate screens.</span>
> ℹ️ 
> ℹ️ <span style="color: #000000">Issues that are updated after this custom field has been created will automatically update, and show the correct custom field value. For existing issues, you will need to </span><span style="color: #000000">[regenerate](https://appfire.atlassian.net/wiki/spaces/JEPC/pages/11338384)</span><span style="color: #000000"> the issue after creating this custom field in order to see the correct values.</span>