How can I fetch data from JIRA using Java?
What are the steps and ideas?
The program should automatically connect Jira and fetch data
Please help
There are multiple ways to access Jira and you need to differentiate between Jira Cloud and Jira Server (since you didn't specify which one you want to access).
Jira Cloud
Jira Cloud only offers a REST API to communicate. Have a look at the REST API docs (Supported authentication: Basic Auth, JWT, OAuth) or the get started guide to create your own app for Jira Cloud.
Jira Server
Jira Server offers a REST API (Supported authentication: Basic Auth) as well as a Java API to access data. There are also guides to get you started using the Java API by creating your own Jira app for Jira Server.
Related
I have created some APIs using JAX-RS jersey. I have been given task to secure them using Oauth 2.0. In google I found many articles in which they explain how can I access google API, facebook API etc. they told me how to access already created APIs
But my question is how can I make my API secure using Oauth in java so that when another applcation want to access, it needs to provide authorization and authentication token etc.
Can anybody help me with the code in java. you can suggest some even paid tutorial of udemy coursera if you know. I will opt for them. I am not using any framework like Spring or Springboot.
I would advies checking out the following page:
https://www.baeldung.com/spring-security-oauth-jwt
It makes use of keycloack for authorization server and spring for configuring the resource server.
is there a Java REST Client for JIRA Zephyr, similiar to the REST Java Client for JIRA? Another helpful approch would be a YAML-File or another kind of webservice description to generate a rest client from.
Thanks!
Are you using Jira server or Jira cloud?
If you are using Jira server, the answer to your question is yes: ZAPI
You can find it on the Atlassian Marketplace, it is an "add-on to Zephyr for JIRA allows access to its testing data programmatically via RESTful APIs"
If you are using Jira Cloud the answer is no. not yet.
The api access feature has been in the works for a long time, and even though their site says it is just released in beta, they pulled it. I have been talking with Zephyr tech reps about that all this last week.
I have set of apis written on google appengine using google cloud endpoints. I want to publish these api's for other developers to consume by releasing the documentation generated through api-explorer. For this I would want my apis to be exposed on url such as https://api.example.com/v1/ but all my api endpoints generated through appengine have a url signature as https://module-dot-project-name.appspot.com/_ah/api/v1/. I have tried mapping my api.example.com to the module serving the api's using the dispatch file, but I could not get my apis to work on my own domain address.
1) How can I get my apis to work on my own domain name?
2) How can I publish my api documentation using api-explorer serving on my own domain address? On url such as https://apis-explorer.appspot.com/apis-explorer/?base=https://api.example.com#p/
1) is now possible with the newer version of cloud endpoints, called Cloud Endpoints Framework. Here is the documentantion, but if you are using the App Engine Standard environment it just works.
2) I'm not sure is possible. I only wrote this answer to addres number 1. :)
Unfortunately, you can't. From the documentation:
Note: Google Cloud Endpoints does not support custom domains.
I have a Google App Engine application deployed which contains and manages user data. My users may want to share their personal data with third party sites. Think Garmin sharing running data with myfitness pal or Strava.
The google documentation is gives good examples for using endpoints with iOS, Android, and javascript based web apps. These examples use a client id but not a "client secret" and do not involve refreshing the access tokens.
I have a javascript app running on a third-party site that does one time lookups against the api well.
I’d like to create a sample server app, preferably in java, that would connect periodically using an assigned client secret and refresh access tokens.
I have found documentation for accessing Google API's at the second link below but it is not clear if "Google APIs" include Google App Engine endpoints or just the standard suite of google apis.
What is not clear to me is that at the first link the documentation suggests that a client library needs to be generated from the backend endpoint api using maven or the endpoints.sh tool. Examples are provided for iOS/Android but there is no discussion for third party access.
Does anyone know is the server access configuration I describe possible with custom endpoints? Has anyone encountered example code for a server app that uses refresh tokens against an endpoint api?
Thanks!
End Points Documentation:
https://cloud.google.com/appengine/docs/java/endpoints/auth
OAuth Documentation:
https://developers.google.com/identity/protocols/OAuth2InstalledApp
Hi I building an application in JAVA to grab information from JIRA by performing several rest requests, but i'm running into trouble with one where authentication is needed. From the JIRA web page i have found this https://developer.atlassian.com/display/JIRADEV/JIRA+REST+API+Example+-+Basic+Authentication. But i'm running into problems figuring out how to do this in java, and if there is another way that would be great.
Use the Jira REST Java Client Library, here is a tutorial to get you started.