Hi All,
I've been working on automation incrementing story points of parent issues when child issues have story point changes. This is generally going well apart from the following use case:
All the other scenarios are working fine, I am calculating the delta of story points on the child and adding/removing story points from the parent accordingly.
The stumbling block is around a couple of smart values which I'll share my audit log actions below:
If the reverse scenario occurs (start with no story points and edit to have a value). Old story points is accurately logged as 0 and the New story points is also accurate.
In the problematic scenario the To/New SP is coming back as a blank (showing as '' in the log).
I guess I can set up a new if/else block for when the New SP is blank and override it with a new "0" variable. However I can't work out why fromString is working fine with the "|0" which should be doing just that when toString is falling over.
Any advice help welcome!
Thanks
Lewis
Hi @Lewis Cook
To be clear, is your scenario that there was a Story Point value and it was later cleared?
If so, I recall a couple of open defects related to JQL (and so probably the API) for that scenario where the empty logic isn't quite correct yet.
My suggestions:
Best regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Bill Sheboy ,
Yep that is the scenario I am having issues with:
The reverse scenario works fine with {{changelog.Story Points.fromString|0}} returning a 0.
I'll probably take your advice on the support ticket.
I shall also take a look at LookupIssues as an alternate option.
Thanks
Lewis
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.