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 MoreIn this example, we will try to install in 5 minutes a PHP Jira Client script in a MacOS system. The prerequisites are: (Homebrew) brew for MacOS CURL for MacOS PHP 7 for MacOS Composer for MacOS php-jira-rest-client library Install instructions with example: Download and Install PHP Composer. curl -sS https://getcomposer.org/installer | php Next, run…
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 MoreThis post is the continuation of: Jira Groovy Postfunction example to set Tempo Team and Tempo Account fields. Here another groovy script example to get the Worklogs of the Tempo Teams using the Tempo Timesheets REST API and Adaptavist Scriptrunner.
Read MoreIt’s difficult to work with Groovy and Tempo fields, because we need to use always the REST interface to work with them (Tempo Team customfield and Tempo Account customfield). Here we can see an example of how to set these customfields using scripting in a PostFunction created in groovy (with the plugin Adaptavist Scriptrunner). In the…
Read MoreUseful simple code in Javascript to get the username and groups of the current user in Jira using the public REST API.
Read MoreHere a fantastic post of Marjan Sterjev from the Company InterWorks. JIRA REST API User Impersonation JIRA is one of the best, if not the best, task management systems on the market. Besides JIRA’s powerful out-of-the-box features, the whole product has rich add-on (plugin) mechanism that can help you customize many JIRA aspects. JIRA exposes REST…
Read MoreIn Jira, always the status name is shown capitalized, and in several applications we must know the name of the status in case sensitive… What we can do to know the REAL name of the Status in Jira? … Very easy! We can do a REST call to the Jira REST API like this: http://your-site-here/rest/api/latest/status/…
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 MoreExamples of updating an issue using fields. Example of assigning an issue to user “harry” This simple edit Request example input data Response You should just receive a response with a status of “204 No Content” Example of updating many fields at the same time Here we update the assignee and also the summary, priority,…
Read MoreSOAPUI is the best interface to make tests to JIRA Web Services. And it’s free. Download SOAPUI It’s very easy, only install and make the test. Set the Endpoint to your JIRA URL Domain and protocol (http or https) and put the resource URL to the REST Endpoint (like /rest/api/2/PROJECT-NUM/worklog to put worklog in an…
Read More