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

0 votes
Accepted answer

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
Community showcase
Posted yesterday in United States

Thanksgiving Tuesday

Good morning All, First of all, Happy early Thanksgiving from the NOVA AUG Leaders! I am anticipating no one will be looking at the group on Thanksgiving Day 😊 Today's topic will be different th...

32 views 4 2
View post

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