Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to clear the field after Edit/Update, before saving the issue in the DB (not on transition)

Witold Zabdyr March 27, 2025

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?

1 answer

0 votes
Florian Bonniec
Community Champion
March 28, 2025

Hi @Witold Zabdyr 

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
ENTERPRISE
TAGS
AUG Leaders

Atlassian Community Events