Getting confirmation before Deleting Custom field Contexts in Atlassian Jira

If you are trying to edit a custom field context, it is very easy to accidentally delete it. It is a poor User Experience and there has been an open ticket asking Atlassian to fix it for 6 years today: JRASERVER-27957 We wanted to commemorate this occasion by sharing a simple workaround. Just put this in your announcement banner and voilà, warnings before deletion.

<script>// Addresses

var contextDefender = function(){
	return confirm("Are you sure you want to delete this context?");

AJS.$( document ).ready(function() {
  AJS.$('[title="Delete Scheme"]').each(function(index,element){

If you’re on Cloud, you can’t inject this kind of content into the system. But you can have your admin team inject it via their browsers. The popular tool for this is Tampermonkey which is available for almost any browser.

Recent Articles

How Teams Can Maximize Their Resources in Jira Using Tempo Planner

Planning projects at a team’s level is quite the journey. Thankfully, Jira is built to streamline the process and help thousands of teams with their project planning. Today we will look at the add-on Tempo Planner, which helps teams take project planning in Jira to the next level.