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

  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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

94 views 0 5
Read article

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