How to add javascript to JIRA 7 - jira

I have a JIRA server installed on my server I would like to add a javascript to all pages. any idea how?
I could not change any jsp file it seems that all are compiled could not be modified.

If hacky solutions don't make you feel uncomfortable, you might be able to use the "Announcement Banner" to achieve this. You can insert html/css/javascript there and it will be displayed on each page in JIRA.
There's an example available here.
The "Announcement Banner" documentation is available here.
Note that this only works on JIRA Server. On JIRA Cloud the Announcement Banner only accepts text or wiki format.

Related

where can I find all the methods of UIATarget class?

I used to consult Apple Developer page "UI Automation JavaScript Reference for iOS" but now the page redirects to a search page of apple that I cant find any information that was provided on the reference I want. I also google my doubts and all the results redirects me to the page that doesnt exist anymore. Does anyone know where can I consult all the methods of UIATarget class?
The page Im referring is https://developer.apple.com/library/ios/documentation/ToolsLanguages/Reference/UIATargetClassReference/
There is a saved copy of this page from July 2012 at archive.org:
https://web.archive.org/web/20120523220502/http://developer.apple.com/library/ios/#/web/20120606031156/http://developer.apple.com/library/ios/documentation/ToolsLanguages/Reference/UIATargetClassReference/UIATargetClass/UIATargetClass.html
It seems like UI Automation was probably replaced by Javascript for Automation (JXA) around Yosemite.

Customize the TFS web dashboard

Like the title says, how can I customize the web dashboard in TFS 2012? I have created my own Work Item Type and would like a shortcut on the home page of Team Web Access. I am using the default Team Web Access page and I would just like to have a shortcut button immediately on the front page instead of in a dropdown, which is where it's contained now.
Thanks!
There is no supported way to do this. In TFS 2015 they have the concept of Web Extensions, but that is only for specific extension points which doesn't include changing the home page.
You can do it in an unsupported manner, but I wouldn't recommend it. You can find the ASPX/CSS/JS files on the server that TFS uses for the web site and hack away at them. I've known people that have done this before. But there are probably repercussions when it comes time to upgrade.
For posterity, I've found a dirty solution to do this without cloning the website and gutting it (as described here: http://awaitwisdom.com/how-to-extend-tfs-team-web-access/). Note that this solution is really dirty and may not fit your project needs.
The solution works by swapping the default work item options (based on the process template you are using).
Use WITADMIN to export your Categories into an XML. Find a work item currently on the front page that you're okay with swapping out for the work item you want to be on the front page. Change "DEFAULTWORKITEMTYPE" to "WORKITEMTYPE" in the tags. Add a new entry: and it should show up as one of the shortcut buttons on your home page.
I highly recommend doing your modifications with Microsoft TFS Power Tools 2012.

Display bar graph using export plugin in grails

I have sample data which I want to show in bar/pie graph using export plugin in grails. I googled a lot but was unable to get exact details of how to do it?
Can anybody please provide me links or any information to start off with this? Thank you.
You didn't provide much description about exactly what your use case is but there are a number of charting plugins for Grails mentioned in this question:
Grails and charting?
These plugins would enable you to render charts on your page. Then there's the issue of converting to PDF. Is it acceptable for users to print the web page to PDF using the browser's functionality? If not, again there are plugins for converting GSPs to PDF (such as http://grails.org/plugin/pdf).
Hopefully you should be able to do what you want with a combination of plugins.

Zendesk app integration

I created a web application by using HTML, JS, JQuery, and some Jquery plugins. Now I want to integrate it into Zendesk. Can I use it like just copy all my files and paste it into zendesk zip file ? Or Do I have to re-code entire thing to make it work for ZenDesk ?
I checked the examples in online, they didn't mentioned anywhere about reusing the apps that already developed in Zendesk.
I am currently doing some fairly extensive Zendesk integration. If you are referring to customisation on the Agent Portal side then it will have to be a Zendesk App under strict Zendesk adopted frameworks jquery is included (http://developer.zendesk.com/documentation/apps/). If in the customer facing Help Center you can simply go into there on screen editor and paste your html, js, etc into the relevant sections see (https://support.zendesk.com/entries/22618341)
Good luck,
Tris
If you want to integrate your app to Zendesk as an Agent App, you might consider the chance of using within an iframe.
Note that the url to which the iframe is pointing to must be served as HTTPS. Otherwise, it won't work.
EDIT:
As of version 2.0 of ZAF (Zendesk Application Framework), it's easy to integrate any webpage. In v2.0, you aren't restricted to any technology or environment.

Markdown editor in ASP.NET MVC

I'm looking to use markdown in my website, and I'd like the editor (or something similar to) the one used here at Stackoverflow. As far as I can see, I can get this from the google code site.
What I want to know is, how do I then use this in my site? I see perl files etc included with this.
Anyone done this before, or have links to good documentation (the site of the original WMD appears to have disappeared).
Here is StackOverflows fork/branch:
https://blog.stackoverflow.com/2008/12/reverse-engineering-the-wmd-editor/
https://meta.stackexchange.com/questions/4168/can-i-use-stack-overflows-reengineered-wmd-editor

Resources