How to automaticaly fulfill a custom field with the current date and time when you change the status of an issue?

Hello,

Could you please give me a solution for my problem?

I need that for some specific transitions in the workflow that JIRA to fulfill automaticaly a custom field with date and time when the transition was made. I need someting like the fied "Created", which is automaticaly fulfiled with date and time when an issue is created. I am using JIRA 6.0.

4 answers

Hi Jonathan,

You might be able to do this using a post function on your transition where you copy the value from the updated field into your custom field. The updated field contains the datetime when the issue has been updated the last time (which would be that exact moment).

Best regards,

Peter

Hi Jonathan,

some more information about post functions can be found here :

https://confluence.atlassian.com/display/AOD/Advanced+workflow+configuration#Advancedworkflowconfiguration-Postfunctions

But you'll need to add the following plugin for the post functions you need :

https://marketplace.atlassian.com/plugins/com.googlecode.jira-suite-utilities

Because you'll need the copy value from other field function.

Best regards,

Peter

Could you please tell me with more details how and where exactly I can edit a post function?

using "Update Issue Custom Field" post function from JSU plugin you can save current date and time, check this

https://jsutil.atlassian.net/wiki/display/JSUTIL/JIRA+Suite+Utilities+Workflow+Post-Functions

Thank you very much! I will install it and I will try if will work.

Can anyone help me with the same issue for JIRA cloud. I set up a Custom Date Field, I want it to automatically fulfill with the current date whenever the status of an issue is changed.

Thanks

saurabh I'm New Here Jan 17, 2018
  1. Decide which workflow transition you want this to take effect (perhaps all of them)
  2. Select the transition and open its Post Functions
  3. Click the "Add Post Function" button on the top right of this table
  4. Choose "Update Issue Custom Field" and click Add
  5. From the Issue Custom Field dropdown, select your date field
  6. In the Custom Field Value text area, enter %%CURRENT_DATETIME%% and click Add
  7. Publish your workflow

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,826 views 12 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot