隐藏Jira中的“智能查询已激活”消息

时间:2015-06-10 14:55:41

标签: jira

每当我在Jira中搜索时,都会弹出以下消息:

enter image description here

现在我希望启用智能查询,但我不需要此消息每次我都会进行搜索,特别是因为它位于某些按钮之上...

有没有办法禁用它?

1 个答案:

答案 0 :(得分:1)

似乎无法禁用此功能,但每次搜索都不会发生这种情况。只有触发智能查询功能的某些关键字才会发生这种情况。例如,与JIRA中的状态匹配的单词(例如,打开,已解决)。

此JIRA问题中描述了一种解决方法: https://jira.atlassian.com/browse/JRA-44561



<script type="text/javascript">
jQuery(window).load(function(){
	/*
	  Hides the blank Announcement Banner div.
	  If using an announcement banner already, 
	  simply comment or remove the line below 
	*/
	AJS.$("#announcement-banner").hide(); 

	/*
	  If this page is the issue navigator and running a JQL query (not a filter)
	  Checks if there is a "AUI Flag Container". If there is one and the text is
	  "Smart querying activated", hides the banner.
	*/
	if (window.location.pathname.includes("/issues/") && window.location.search.includes("?jql=")){
		test = AJS.$("#aui-flag-container")
		if (test.text().includes("Smart querying activated")) {
			AJS.$("#aui-flag-container").hide();
		}
	}
});
</script>
&#13;
&#13;
&#13;

基本上它运行一些Javascript插入(可自定义)公告横幅。

非常烦人,但像往常一样Atlassian说他们不会解决它。