Updated field not accurate when copying during post function

I have a post function in my workflow that copies the value from the "Updated" system field to another time-date field called "Closed". I am doing this at several other points in the workflow to capture when the request is Acknowledged, Resolved, etc. It is working in all cases except for the Closed case. Instead of capturing the current time-date stamp, it is capturing the time-date stamp of the previous step. Basically, it does not appear to be refreshing. Can anyone advise on how to get this to update?

1 answer

1 accepted

Can you check the order of your post functions. It seems you doing the copy before the issue is updated.

What post function would update this field (update the issue)? I have the post functions in this case the same as the other examples where I am using this, so I'm pretty sure this is not the problem.

yes, "Update this is issue and set the status ..." or something like this.

If your order is correct it could be a permission problem. Can you edit closed issues? If not it will not work. In that case you would need to set that field to the current timestamp before that post function.

The post functions are in the correct order. I also have permission to edit closed issues. Here is a screenshot. Again, this is working correctly for other workflows so I'm not sure what is wrong in this case.

Well, I can't see your screenshot, unfortunately.

For some reason it is allowing me to add but is not showing up. The order is as follows:

Set issue status to the linked status of the destination workflow step

The field Closed will take the value from Updated

Assign to the reporter

Add a comment if entered during transition

Update change history for an issue and store the issue in the database

Re-index an issue to keep indexes in sync with the database

Fire an Issue Closed event

try and put

The field Closed will take the value from Updated

after

Update change history for an issue and store the issue in the database

This worked! Thanks!!

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 Agile

How Davin Studer gets Confluence to do everything he wants it to do...except dishes

  @Davin Studer holds many interests, including but not limited to health tech and Star Trek. Read on to discover more about Davin, from his favorite Confluence macros to his favorite lit...

145 views 1 7
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