Hello,
I need to create a listener with ScriptRunner that only run when the "Original estimate" field change. I have tried to control it with the changelog, as I do with the custom fields, but with this field it doesn't work. This is the code I have tried.
def creacionChangeOriginalEstimate = changelog?.items.find {it['field'] == 'Original estimate'}
Is there any way to control that the code run only if the Original estimate field changes?
Thanks!
Hi @[deleted],
To check if it was the Original Estimate field that changed,
def change = event.changeLog?.getRelated("ChildChangeItem")?.find { it.field == "timeoriginalestimate" }
I hope this helps!
I'm trying to implement a similar functionality using Behaviours. Whenever the "Original Estimate" field changes and its value exceeds a specified limit, a warning message should be displayed. I tried using the event change in Behaviours, but the result isn't dynamic.
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.