Just upgraded from 5.0 to 5.2.6. The new search interface was announced to be a big highlight.
However, I can't see that we gain that much. People just need to re-learn.
A big disappointment is that my search history, with my recent JQL searches, has disappeared. It was a very useful function. Why is it removed? Or is it around somewhere else?
Wrote a quick script which can help you to JQL history (even though it won't be synchronized across all browsers/machine that you use). Just uses the local storage.
Put this into the announcement banner and you will be good to go (tested on JIRA 6.1.1):
EDIT: Minor changes for the order of items
<script type='text/javascript'> var refreshJqlHistoryPane = function() { var localHistory = localStorage.getItem('jqlHistory'); if(localHistory){ var history = JSON.parse(localHistory); var historyEntries = history.map(function(jql){ var display = jql; if(display.length > 25){ display = display.substr(0,22) + "..."; } return '<li><a href="'+ AJS.contextPath() + '/issues/?jql=' + encodeURIComponent(jql) + '">' + display + '</a></li>'; }); var historyBlock = '<nav class="aui-navgroup aui-navgroup-vertical"><div id="jql-history-panel"><div class="aui-nav-heading"><strong>JQL History</strong></div>' + '<ul class="aui-nav">' + historyEntries.join("") + '</ul></div></nav>'; if(AJS.$('#jql-history-panel')){ AJS.$('#jql-history-panel').remove(); } AJS.$(AJS.$('.filter-panel-section')[0]).after(historyBlock); } } var handleJqlSearch = function(){ JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function(){ var currJql = AJS.$('#advanced-search').val(); if(null != currJql && currJql !== "") { var rawdata = localStorage.getItem('jqlHistory'); var history; if(rawdata){ history = JSON.parse(rawdata); var lastJql = history[0]; if(lastJql != currJql){ history.unshift(currJql); } if(history.length > 10){ history.pop(); } } else{ history = new Array(); history.push(currJql); } localStorage.setItem('jqlHistory', JSON.stringify(history)); } refreshJqlHistoryPane(); }); } AJS.$(document).ready(function() { if(AJS.$('#advanced-search')) { handleJqlSearch(); } }); </script>
That's pretty smart!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Agree, it works fine!
However, I would like to see the feature reintroduced
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Elegant solution - I have improved it in this gist with
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It's not around anywhere else, they removed it because they said it wasn't used much.
BTW, when they say things like this it's based on metrics from AOD, which have very different user patterns from the hosted instances.
I agree with you, I used it a lot and miss it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I too miss it. You can't expect people to save every single search as filter. Especially when trying things out.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, there's a reason not to upgrade. I use that feature all the time.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I can see why cloud users would not use this. However, JIRA server users with multiple enterprise licenses who pay lots of $$$ should maybe also have a say here...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well. the search history is actually there - just hit back button (or access the context menu on the back button). Or hit Ctrl-H and filter by ?jql=.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not the same level of functionality at all!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Atlassian is weird. Such a basic and great feature, now gone. I just lost a really complex search query because I clicked on a label by accident. Now my last search is the one for the label *doh*
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Vote for it to come back here: https://jira.atlassian.com/browse/JRA-30607
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We just upgraded (or downgraded if you liked to use search history) about a month ago, and it is the first thing I noticed was missing. Really a pain in the neck to have to save a filter now, where before I could simply click on the previous searches.
Removing this feature was a bad call. Was there some big overhead to maintain the feature??? Many on my team and I hope it will be added back in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Wrote a quick script which can help you to JQL history (even though it won't be synchronized across all browsers/machine that you use). Just uses the local storage.
Put this into the announcement banner and you will be good to go:
<script type='text/javascript'> var refreshJqlHistoryPane = function() { var localHistory = localStorage.getItem('jqlHistory'); if(localHistory){ var history = JSON.parse(localHistory); var historyEntries = history.map(function(jql){ var display = jql; if(display.length > 25){ display = display.substr(0,22) + "..."; } return '<li><a href="'+ AJS.contextPath() + '/issues/?jql=' + encodeURIComponent(jql) + '">' + display + '</a></li>'; }); var historyBlock = '<nav class="aui-navgroup aui-navgroup-vertical"><div id="jql-history-panel"><div class="aui-nav-heading"><strong>JQL History</strong></div>' + '<ul class="aui-nav">' + historyEntries.join("") + '</ul></div></nav>'; if(AJS.$('#jql-history-panel')){ AJS.$('#jql-history-panel').remove(); } AJS.$(AJS.$('.filter-panel-section')[0]).after(historyBlock); } } var handleJqlSearch = function(){ JIRA.bind(JIRA.Events.NEW_CONTENT_ADDED, function(){ var currJql = AJS.$('#advanced-search').val(); if(null != currJql && currJql !== "") { var rawdata = localStorage.getItem('jqlHistory'); var history; if(rawdata){ history = JSON.parse(rawdata); var lastJql = history[history.length - 1]; if(lastJql !== currJql){ history.push(currJql); } } else{ history = new Array(); history.push(currJql); } localStorage.setItem('jqlHistory', JSON.stringify(history)); } refreshJqlHistoryPane(); }); } AJS.$(document).ready(function() { if(AJS.$('#advanced-search')) { handleJqlSearch(); } }); </script>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
What? Use Ctrl-H? Gotta be kidding me.
I should have cornered someone at Summit and bribed/forced them to put it back!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I miss it as well. Especially since you can't have two searches in a single session. It's very annoying to make a complicated JQL search and to have it blown because you needed to search for something else.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There are two distinct worlds of JIRA users - those accustomed with JQL syntax and the others.
I was for long time hesitating to upgrade to version 5.2 for our company (and customers), when an user recalls me what a poor experience is simple search in pre-5.2 version. For those users using simple search is 5.2 the blessing (and they really never used the JQL history and don't miss it).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.