JIRA Scriptrunner REST Endpoint & Web Fragment example

This 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

One 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 More