I use several Behaviours scripts to handle fields on a Jira Software form. In order to communicate with each other, these scripts use a hidden technical customfield Text Field (multi-line) to store the JSONArray structure. When saving the form on the transitions, this field is cleared using the Clear field(s) ScriptRunner postfunction so that it is not saved in the issue and in the issue history.
However, when editing the ticket (Edit), I cannot clear the technical field before saving the ticket. The event listener captures the Issue Updated event, but this happens after the issue is saved. The change in the technical field value is therefore visible in the history.
How can I add a preceding action when clicking the Update button on the screen to clear this technical field before saving the issue in the database?
Not sure if it's possible with Behaviour. If it's something you really need, you could add custom javascript in the field description.
Regards
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.