I'm trying to pull the previous value of a custom field that has already changed using automation. This is on Data Center.
Does this only work when the rule is triggered by a change?
I'm using {{#changelog.[fieldname]}}{{fromString}} to {{toString}}{{/}} to try and search based on automation documentation, but I'm not getting any results.
Hi,
It seems that you can only access to the smart value "field change" using an update trigger.
One solution could be to use the REST API in Automation
Hi @Dancey Apple -- Welcome to the Atlassian Community!
Adding to the suggestions from @Mohamed Benziane ...
If you try using the REST API endpoint to get the changelog, you could run into the limits for how many entries are returned for each call. And so if your issue is updated often and the assignee changed more than 100 "changes" ago, your rule would be quite complicated.
What problem are you trying to solve by doing this? That is, "why do this?" Knowing that may help the community to offer other solution approaches.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Bill Sheboy and @Mohamed Benziane Thanks for the suggestions!
The goal is to plug the old value of the field into a new field.
We have a field called Remaining Hours that was zeroed out by another automation. We want to grab the previous value and plug it into a new field called Estimated Hours.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Is this a one-time fix or a re-occurring one?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, we've already addressed the automation that zeroed out the value. This was all a part of a migration from one project to another.
I think it was only a single change, but thanks for the heads up about the last 100 updates. I'll try the REST API route.
Thanks Everyone!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.