How to change Announcement Banner using SQL query (No REST API available)

Still need help?

The Atlassian Community is here for you.

Ask the community


Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

    

Summary

This document shows how to change Jira Announcement Banner text using SQL Query directly in the database.

At this time Jira does NOT have a REST API endpoint available to change the Announcement Banner text or property.

JRASERVER-67199 - Getting issue details... STATUS

Environment

From Jira 8.5.x to Jira 8.13.x

Diagnosis

To check the property ID's in the database, use the query below: 

SELECT * FROM propertyentry WHERE property_key LIKE '%alert%';

It will return the information below (note the ID column): 



The property "jira.alertheader" is the text itself that will be displayed.
This property is stored in the table "propertytext" and from the query above, the ID 11101 must be used: 

SELECT * FROM propertytext WHERE id = 11101;

The query above will return the result below:


The property "jira.alertheader.visibility" is the "Visibility Level" property in the UI.
This property is stored in the table "propertystring" and following the example above, you can get it with the query below: 

SELECT * FROM propertystring WHERE id = 11102;

The query above will return the result below:

Solution

The UPDATE query below can be used to change the "Announcement Banner" text:

UPDATE propertytext SET propertyvalue = 'Announcement Banner text goes here between quotes' WHERE id = 11101;



Last modified on Sep 21, 2021

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.