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:
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
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
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.