jira-rest-api

Listing All JIRA Transitions via API

喜夏-厌秋 提交于 2019-12-01 04:58:24
问题 I'm looking to set up smart commits in JIRA, but my developers want to know all the options for their transitions. In order to help them, I'd like to print a cheat-sheet of all transition names (I trust they are smart enough to figure out what does what from there). But when I look through the REST API documentation, I can only find a way to get the list of transitions for a particular issue (presumably via its status). Is there a way to get the list of all transitions that any ticket can

Enable CORS in JIRA REST API

China☆狼群 提交于 2019-11-30 19:09:37
I´m calling JIRA REST API from JavaScript in a Confluence User Macro and I´m facing CORS issues because JIRA and Confluence are on two different domains and preflight request from browser is failing. I have tried several CORS solutions as described below, without any success. So Im begging for some input from others that probably have solved this issue. JavaScript snippet that is failing : AJS.$.ajax({ type: "GET", url: "http://jira.mydomain.com/rest/api/latest/search/?jql=issue%20in%20linkedIssues(SR-45)", dataType: "json", contentType: "application/json", async: false }) Error message (from

Enable CORS in JIRA REST API

随声附和 提交于 2019-11-30 03:13:30
问题 I´m calling JIRA REST API from JavaScript in a Confluence User Macro and I´m facing CORS issues because JIRA and Confluence are on two different domains and preflight request from browser is failing. I have tried several CORS solutions as described below, without any success. So Im begging for some input from others that probably have solved this issue. JavaScript snippet that is failing : AJS.$.ajax({ type: "GET", url: "http://jira.mydomain.com/rest/api/latest/search/?jql=issue%20in

Basic authentication for REST API using spring restTemplate

◇◆丶佛笑我妖孽 提交于 2019-11-27 11:17:40
I am completely new in RestTemplate and basically in the REST APIs also. I want to retrieve some data in my application via Jira REST API, but getting back 401 Unauthorised. Found and article on jira rest api documentation but don't really know how to rewrite this into java as the example uses the command line way with curl. I would appreciate any suggestion or advice how to rewrite: curl -D- -X GET -H "Authorization: Basic ZnJlZDpmcmVk" -H "Content-Type: application/json" "http://kelpie9:8081/rest/api/2/issue/QA-31" into java using spring rest template. Where the ZnJlZDpmcmVk is a base64

Basic authentication for REST API using spring restTemplate

独自空忆成欢 提交于 2019-11-26 15:27:23
问题 I am completely new in RestTemplate and basically in the REST APIs also. I want to retrieve some data in my application via Jira REST API, but getting back 401 Unauthorised. Found and article on jira rest api documentation but don't really know how to rewrite this into java as the example uses the command line way with curl. I would appreciate any suggestion or advice how to rewrite: curl -D- -X GET -H "Authorization: Basic ZnJlZDpmcmVk" -H "Content-Type: application/json" "http://kelpie9