It’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 MoreJIRA REST API Example with CURL
Examples 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 MoreOne simple way to obtain time measures of JIRA from terminal
The best way is using CURL from command line time curl -D- -u raul.pelaez:*** -X GET -H “Content-Type: application/json” http://127.0.0.1:8080/rest/api/2/search?jql=assignee=raul.pelaez real 0m7.098s user 0m0.004s sys 0m0.012s time curl -D- -u raul.pelaez:*** -X GET -H “Content-Type: application/json” http://10.2.29.224:8080/rest/api/2/search?jql=assignee=raul.pelaez real 0m7.562s user 0m0.008s sys 0m0.008s time curl -D- -u raul.pelaez:*** -X GET -H “Content-Type: application/json” https://jira.domain.com/rest/api/2/search?jql=assignee=raul.pelaez real…
Read MorePHP Scripts with JIRA REST API
Searching for issues We can use the search API available at http://example.com/rest/api/2/search with the JQL “created > -1d”. <?php //pull in login credentials and CURL access function require_once(“utils.php”); //create a payload that we can then pass to JIRA with JSON $jql = array( ‘jql’ => ‘created > -1d’ ); /*define a function that calls the…
Read More