Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to get the value of Fix Version prior to the new value is not working

Lucas Hurst June 25, 2025

In short I am automating for when a fix version is changed on a story it updates the fix version on the subtasks/test cases. I only want to do this though, if the fix version before the updated one matches the fix version of the subtask/test case. 

I provided pictures of the process. I do not need help with the process. I need help actually getting that previous value as {{fieldChange.fromString}} continues to return null.

Here is what the log is logging for more context.

All field changes: ChangeItemBean{field='Fix Version', fieldType='jira', from='null', fromString='null', to='13665', toString='2024.04.28'} From string: From name: To string: 2024.04.28 To name:

Screenshot 2025-06-25 100543.png

1 answer

0 votes
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 25, 2025

Hi @Lucas Hurst -- Welcome to the Atlassian Community!

From my observations, there are problems with the consistency and accuracy of the change log provided to rules for list fields such as Fix Versions.  This gets worse when the field has changed several times.

My recommendation is to try both the {{changelog}} and {{fieldChange}} smart values to learn if they contain what you need:

 

And if neither is accurate enough, you could call the REST API directly to get the actual changelog entries (with the Send Web Request action), filtering the response to get the information.

 

Kind regards,
Bill

Lucas Hurst June 25, 2025

Hello Bill, 

Thanks for the input, I have tried both. Neither seem to do it I will see what I can do with the REST API.

Thanks!

Like Bill Sheboy likes this
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 25, 2025

One more thing to try before the REST API...

Use the Create Variable action to first save the entire {{changelog}} or {{fieldChange}} smart values, which will convert them to text. Then parse the results using text functions. This will mitigate any problems accessing the attributes of the value.

Lucas Hurst June 25, 2025

Thanks for this as well. Tried this and same thing. I have read that for what I am doing it is a known issue that multi value fields return blank for the from and from and fromString.

Thanks for your help!

Suggest an answer

Log in or Sign up to answer