Hi TEam,
I have the code below to set the field "Severity Update Flag" when there are changes to the field "PSIT Severity" , how ever behavior below fires even when there is no change to the field PSIT Severity just when we click the edit button is there a way to avoid it?
Please let me know
Upon reviewing your code, I can confirm the Behaviour is working as expected.
You seem to be trying to obtain the previous field value. Please confirm if this is your goal.
If yes, then the approach you are taking will not work. For this, you must use the ChangeHistory object.
For more information on how the ChangeHistory object is used, you can refer to this ScriptRunner Library example code.
Let me know if you need further assistance and I will try to provide a working sample.
Thank you and Kind regards,
Ram
Hi Ram,
Thank you for the feedback. We need to change the flag if there is any change in the selected field. Thank you for your suggestion of using "changehistory" object - will it fire immediately when the value is changed or do we need to save the record in order to get the contents from the "changehistory" object ? . Please let me know.
Can you please give me an working example also?
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.