简体   繁体   English

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

[英]Hide the "Smart querying activated" message in Jira

Every time I do a search in Jira, this message pops up:每次我在 Jira 中进行搜索时,都会弹出此消息:

在此处输入图片说明

Now I want smart querying to be enabled, but I don't need this message every time I do a search, especially because it's placed on top of some buttons...现在我想启用智能查询,但我不需要每次搜索时需要这条消息,特别是因为它被放置在一些按钮的顶部......

Is there any way to disable this?有什么办法可以禁用它吗?

Seems there is no way to disable this, but it doesn't happen for every search.似乎没有办法禁用它,但并不是每次搜索都会发生这种情况。 It only happens for certain keywords that trigger the smart querying capabilities.它只发生在触发智能查询功能的某些关键字上。 For example, a word that matches a status in JIRA (eg open, resolved).例如,与 JIRA 中的状态匹配的单词(例如 open、resolved)。

A workaround is described in this JIRA issue: https://jira.atlassian.com/browse/JRA-44561此 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>

basically it runs some Javascript inserted into the (customisable) announcement banner.基本上它运行一些插入到(可定制的)公告横幅中的 Javascript。

Very annoying but as usual Atlassian said that they won't fix it.非常烦人,但像往常一样,Atlassian 说他们不会修复它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM