A simple example code: function CaptchaReset(username) Example query: /rest/scriptrunner/latest/custom/CaptchaReset?username=mraddon Example result: {“result”:”OK”} By MrAddon
Read More
A simple example code: function CaptchaReset(username) Example query: /rest/scriptrunner/latest/custom/CaptchaReset?username=mraddon Example result: {“result”:”OK”} By MrAddon
Read MoreSometimes we need to transition issues (or “review” issues) from our usual Dashboard Jira gadget “filter results” with only one click. For this “trick” we need the plugin Scriptrunner for Jira. First create a custom REST Endpoint with Scriptrunner to Transition the issues (and do more actions if they needed). Example code: Note: the name…
Read MoreIn this example we will create a new Dialog inside Jira using Scriptrunner, a little bit of HTML, Groovy and Javascript. First we will create 2 REST Endpoints (one to show the Dialog and another one to show a HTML page with the results of the action). Custom REST EndPoint: showDialogExample (example code extracted from…
Read MoreThis exercise is the continuation of: How to create a Jira custom field with options from an external REST API In this case, instead of use an external REST API to obtain the values of the dropdown, we want to use a static list of values. We will use the same approach than the other…
Read MoreTo do this exercise, we will use the famous plugin for Jira called Adaptavist Scriptrunner. First step, we need to create a REST Endpoint in our Jira Server. This REST Endpoint will query the external REST API to obtain the values and options (In this example we will query GitHub to obtain a list of…
Read MoreYou can download the slides of the event here: Raul_AUG_Bologna_2018 Some examples of the slide scripts: New release of Description Templates for Jira Server & Cloud How to set a default description template in your Jira tickets. Show/Hide Mandatory fields in Jira dynamically with Behaviours New Example of Groovy JIRA Service to CLOSE issues in 5…
Read MoreThis example show a button in the “More” option of the issue tickets called “Approve this issue“. This button call a Scriptrunner REST custom Endpoint and returns a “flag” Object to be shown as alert in the ticket. First go to “Add-ons-> Scriptrunner –> REST Endpoints” and add this script: Then save the REST Endpoint.…
Read More