Issue Details (XML | Word | Printable)

Key: JRA-7460
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Jeffrey Whitehead
Votes: 3
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
JIRA

Quip list

Created: 26/Jul/05 08:23 PM   Updated: 10/Dec/06 10:22 PM
Component/s: Extensions
Affects Version/s: 3.2.3
Fix Version/s: None

Time Tracking:
Not Specified

Participants: =Neal Applebaum, Anton Mazkovoi [Atlassian], Jeffrey Whitehead, Matt Doar, Raistlin Alexander Majere and Zach Garner
Since last comment: 1 year, 40 weeks, 3 days ago
Labels:


 Description  « Hide
JIRA needs a quip list, similar to what bugzilla has.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Anton Mazkovoi [Atlassian] added a comment - 26/Jul/05 09:52 PM
Hi Jeffrey,

If I understand the Quip list correctly, it would show a random message from the list everytime a search is performed. Is this so?

Thanks,
Anton


Zach Garner added a comment - 27/Jul/05 12:53 PM
A Quip list is:
a) amateurish
b) completely useless
c) bloat

Jeffrey Whitehead added a comment - 27/Jul/05 02:17 PM
Anton,

Yes. With the ability to add to the list.

For many coming from bugzilla, it's the #1 feature.


Jeffrey Whitehead added a comment - 27/Jul/05 04:18 PM
Zach,

Please do not presume that what is appropriate and good for your environment is completely congruent with our environment.

One of our corporate objectives is to have a "Great Place to Work," and the quips in bugzilla are one of those little things that makes our environment more fun, and people really appreciate it.

I wouldn't go trying to gainsay your feature requests.


Anton Mazkovoi [Atlassian] added a comment - 27/Jul/05 07:40 PM
Thanks for the update.

When we implement this feature we will definitely make it configurable so it will be possible to turn it off. Please bare with us as we are trying ot get through a list of features that have become very popular:
http://jira.atlassian.com/browse/JRA?report=com.atlassian.jira.plugin.system.project:popularissues-panel

Thanks,
Anton


Raistlin Alexander Majere added a comment - 08/Nov/05 05:38 PM
This feature serves as a simple blog for developers. At our company we enjoy throwing in some of the better quotes from our peers and have accumulated an impressive list that we'd like to maintain in Jira. It would be great if this feature could be added.

Matt Doar added a comment - 29/Nov/06 07:45 PM
Here's one way to do this using the existing Announcement Banner and a bit of the ol' Web 2.0 pixie dust. First export your quips from the Bugzilla database with "select quip, profiles.realname from quips,profiles where quips.userid=profiles.userid;" and paste the results into into a file
<local jira base>/atlassian-jira/quips/quips.txt. Then, for beauty, remove the start and end | characters from each line, and change remaining | to -, or some such separator. Spaces are ignored as the text is treated as HTML. Next split this file up into multiple files named quip00, quip01,..., one file per quote using something like: split -a2 -l1 -d quips.txt quip
(The a2 is for 2 digit identifiers.)

Then edit your Announcement Banner (Admin, Options and Settings) and paste the following text in, hit Save, and you should see a random quip appear. You will need to set the numberQuips variable to the number of quips you have locally (I know, this is tedious to maintain). Adding quips is a matter of adding the new files to the Jira server; there's no nice approval mechanism with this approach.

<!--Cut and paste below here -->

<script type="text/javascript">
// Add leading zeroes to the name of the file that a quip is in.
function paddedRandom() {
numberQuips = 60
quip_num = Math.floor(Math.random() * numberQuips)
if (quip_num < 10) { quip_num = "0" + quip_num }
return quip_num
}

/***********************************************

  • Dynamic Ajax Content- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
  • This notice MUST stay intact for legal use
  • Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
    ***********************************************/

var loadedobjects=""
var rootdomain="http://"+window.location.hostname

function ajaxpage(url, containerid){
var page_request = false
if (window.XMLHttpRequest) // if Mozilla, Safari etc
page_request = new XMLHttpRequest()
else if (window.ActiveXObject){ // if IE
try { page_request = new ActiveXObject("Msxml2.XMLHTTP") }
catch (e){
try{ page_request = new ActiveXObject("Microsoft.XMLHTTP") }
catch (e){}
}
}
else
return false
page_request.onreadystatechange=function(){ loadpage(page_request, containerid) }
url = url + paddedRandom()
page_request.open('GET', url, true)
page_request.send(null)
}

function loadpage(page_request, containerid){ if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1)) document.getElementById(containerid).innerHTML=page_request.responseText }

function loadobjs(){
if (!document.getElementById)
return
for (i=0; i<arguments.length; i++){
var file=arguments[i]
var fileref=""
if (loadedobjects.indexOf(file)==-1){ //Check to see if this object has not already been added to page before proceeding
if (file.indexOf(".js")!=-1){ //If object is a js file fileref=document.createElement('script') fileref.setAttribute("type","text/javascript"); fileref.setAttribute("src", file); }
else if (file.indexOf(".css")!=-1){ //If object is a css file fileref=document.createElement("link") fileref.setAttribute("rel", "stylesheet"); fileref.setAttribute("type", "text/css"); fileref.setAttribute("href", file); }
}
if (fileref!=""){ document.getElementsByTagName("head").item(0).appendChild(fileref) loadedobjects+=file+" " //Remember this object as being already added to page }
}
}

// This will load the given URL, which has a suffix added above, into the named div element
ajaxpage('../../quips/quip', 'quip');
</script>

<div id="quip"></div>


=Neal Applebaum added a comment - 30/Nov/06 08:31 AM

Adding quips is a matter of adding the new files to the Jira server

Matt - I'll share an idea with you that might allow users to upload files directly through JIRA.

Create an issue in some admin project of some sort. Add an attachment to the issue. It will create a file on the server with a specific path/name that you can then refer to instead of <local jira base>/atlassian-jira/quips/quips.txt.

Nic Brough suggested this approach in the forum as a workaround for uploading CSV import files but it might work here as well.


Matt Doar added a comment - 30/Nov/06 11:02 AM
That's a cool idea! Then what would be needed is a way to choose a file at random from the directory. I guess that means finding a way to list the contents of a server-side directory, create an array and choose an entry at random, then retrieve the URL. I'll leave that for someone else to do

You can also change the style of the quip nicely with

<style type="text/css">
#quip{ font-style: oblique; }
</style>