Is it possible to get all issue types from JIRA Agile API? I couldn’t find designed endpoint for this.
https://developer.atlassian.com/cloud/jira/software/rest/intro/
In general, if you don’t see the endpoint you need in the Jira Software REST API, check to see if it is in the platform instead, which is common to both Jira Software and Jira Service Manager.
Thank you for your answer. However I wanted to get everything from one API because both APIs have different authentication method. From v3 API I couldn’t find endpoint to get list of sprints (even as customfield).
Hi @ASDev,
The JIRA Software Cloud API can be viewed as an extension of the Jira Cloud Platform API. Both support JWT authentication, but the Jira Cloud Platform API also supports OAuth 2.0 (3LO).
So, on the assumption you’re already calling JIRA Software Cloud APIs, you must be using JWT auth, and since the GET /rest/api/3/issuetype supports JWT, it should be what you’re looking for.
Please let us know if you were confused by our API documentation or if I’ve misinterpreted your request.
Regards,
Dugald
Thank you @dmorrow for clarifying.
JIRA Software Cloud API documentation shows that for direct REST API calls only OAuth 1 and Basic Auth are available which doesn’t suit my needs of secure connection. JWT tokens are available for Atlassian Connect add-ons which implementations of are available only for Java and Node.js. I make application in PHP, so I understand that it can’t be applied.
Jira Cloud Platform API fits all my requirements except of need to pull out sprint data which is only available in JIRA Software Cloud API - Get sprint. Can you provide information when this API endpoint will be available in Jira Cloud Platform API covered by Oauth 2.0?
Kind regards,
AS
Hi @ASDev,
It is possible to call the REST API from a PHP app using JWT based authentication, however, Atlassian doesn’t provide an app side framework to facilitate this as is the case for Node and Java. Instead, you would have to use a PHP JWT library directly. Two libraries are identified in https://developer.atlassian.com/cloud/jira/platform/understanding-jwt-for-connect-apps/ and additional libraries may also be identified at https://jwt.io/. If you proceed with this approach, you should pay particular attention to the section detailing how to create a query string hash as this has been problematic for some app developers.
As for the availability of the API to get sprint data (GET /rest/agile/1.0/sprint/{sprintId}), I have created ACJIRA-2273: Add OAuth 2.0 (3LO) support for all Jira Software Cloud API endpoints.
Regards,
Dugald