I'm having a problem getting a ScriptRunner Listener to behave as desired.
My design:
- issue view/edit has three custom single-select fields: input1, input2, input3
- these input fields have values limited from 1-5
- when a field is updated, i want another field, myoutput, to display the product of input1, input2 & input3
Actual Behavior:
- the backend value for myoutput will update within a few seconds. confirmed with scriptrunner log and refreshing a filter list containing the changed issue.
- the value displayed in the issue view page (from where I did the update) does not update every time.
- only occasionally do I see brief modal from scriptrunner indicating that it has changed a field in the background and to click to refresh.
Desired Behavior:
- the value of the myoutput field in the UI is updated in a reasonable time, each and every time without user interaction.
Hi @Kieran Donnelly I didn't use listeners on Cloud much but as I understand it, listeners are working asynchronously (most implementations), so that's why sometimes you just need to refresh the issue detail to display new value BUT did you try to implement this behaviour using scripted fields (https://docs.adaptavist.com/sr4jc/latest/features/scripted-fields)?
@Martin Bayer _MoroSystems_ s_r_o__ I did investigate the scripted fields but they do not show up on the filter list view afaik. That's a deal breaker.
Going back to my use case, I would settle for the popup dialog that says "Scriptrunner has updated your issue; please refresh" but as mentioned it does not appear consistently.
I'm not fond of rolling out a change that potentially shows stale data without an indication to the user.
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.