Forums

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

How to have a custom field "Date Closed" populated automatically when user close an issue?

Zaldy Parian
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 16, 2018

I wanted to create a custom field to store the date when an issue/bug was closed. And I want to use this field in my reports.

Is there a way to populate a custom field with date value once a user close an issue or a bug?

2 answers

1 accepted

1 vote
Answer accepted
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 16, 2018

With what date do you want to populate it? If you want to populate it with the current date then kindly read here:

https://community.atlassian.com/t5/Jira-questions/How-do-I-set-a-custom-field-with-the-current-date-time-in-a-post/qaq-p/143415

If you want something other from the current date, you would need an add-on for it.

Zaldy Parian
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 16, 2018

Hi Alexey,

Thanks for your reply. What do you mean by:

"Select the transition and open its Post Functions"

I went to edit the workflow and I can't see the post function or the button to add the post function.

Can you show me a screenshot?

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 16, 2018

This is a screenshot

Selection_045.png

Tzu Hau Chai
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 16, 2018

Click "Add Post Function" on the right, then select "Update Issue Custom Field".

Zaldy Parian
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 16, 2018

Hi Tzu Hau Chai. Thanks for the info. I wasn't aware the first time that I need to click the line arrow connecting to the Closed status to reveal the Post Functions option. I should have read the instructions very well :-)

 

Hi Alexey. The suggested solution worked! Yay!. Thanks for your help. Follow up question though... The Date Closed field recorded the date when the issue was closed, but is it possible to record the date and time?

Thanks, mate.

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 16, 2018

I guess this solution must save date and time. Is your Date Closed custom field the Date Time custom field? There are actually two types of custom fields: Date Custom Field and Date Time Custom Field. Kindly make sure that you chose the Date Time Custom Field.

Zaldy Parian
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 17, 2018

Hi Alexey,

 

You're right my custom field is just a date type.

Embarrassed to ask you, but here goes....

How do you change the field type from Date Picker to DateTime Picker? Do I have to delete it and recreate it and select the right field type? I'm afraid to delete it as it will might wipe out all the date closed records -- i.e., I got this warning message..

"Your custom field will be deleted permanently. This includes all values in issues with this field. No one can undo this. Deleted custom field data can't be recovered, ever."

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 17, 2018
0 votes
Tzu Hau Chai
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 16, 2018

You can use JIRA Suite Utilities plugin (or anything else that offers similar functionality), add a "Update Issue Custom Field" post function at the transition to the closed status, configure it to set the current date into a Date custom field.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events