2015-06-10 31 views
2

每次我做JIRA中搜索时,此弹出消息:隐藏“智能查询激活”的消息在吉拉

enter image description here

现在我要启用智能查询,但我不需要此消息每次我做了一个搜索,特别是因为它被放置在一些按钮的顶部...

有没有什么办法可以禁用它?

回答

1

似乎没有办法禁用此功能,但它不会发生在每个搜索中。它只会发生触发智能查询功能的某些关键字。例如,与JIRA中的状态相匹配的单词(例如打开,解析)。

一种解决方法是在这个JIRA问题描述: https://jira.atlassian.com/browse/JRA-44561

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

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

基本运行一些JavaScript插入(可定制)公布的一面旗帜。

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