Hi,
I am looking for some examples how to use JavaScript (AJS) to do some calculations within Jira (add costs and so on)
Ok, I found some examples with JavaScript reading and writing custom fields. Each time AJS$.... had been used. What is it and where is this api described? I havent done that much with JS before, so my question, how to find some examples / turorials. :-)
Thanks, Uwe
Community moderators have prevented the ability to post new answers.
AUI and AJS are the same thing. AJS is the Javascript part of AUI.
There is no documentation about AJS as an "API": You may be able to access some information of the page using AJS but it is limited to the displayed page. AJS does not perform REST calls to, say, search for issues or list the users.
When you find an AJS method which seems interesting, the best documentation is the code and the headers of the javascript files. You can download the source by going to my.atlassian.com.
Here's most of the examples of using AJS, and they are mostly about displaying widgets:
Very complete answer to what I see as a common question/need. Thanks Nicolas.
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.
have you gone through this document
https://developer.atlassian.com/display/AUI/Atlassian+User+Interface+(AUI)+Developer+Documentation
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I've done all my custom scripting from services to listeners to post-fuctions with groovy and Script Runner. Before you head down the road of javascript, give this plugin a look:
https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I started with script runner but the current version has a memory leak which ends up in a OutOfMemory exception for PermGen and kills the server finally.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
More context please..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.