Access Jira RESTful API by CURL

Source: Internet
Author: User


*******instruction for geting RECORDS from JIRA by curl*****************Jira Supply Restfull API, so we can use the CURL to get data. Below is the steps,1. Install CURL; 2. Use Curl to send a Http GET request with the command is as below, (1k records per request);Curl-d--O c:/jiratest.txt-u Username:password-X get-h "Content-type:application/json" http://10.255.7.140:8080/rest/api/2/search?jql= "key>cm-7266& maxresults=1000 "3. Edit C:/jiratest.txt, to remove the header and Separater (,) 4.   Create DB & Collection (jira.jiratest), > show databases;   Jira 0.203GB Local 0.078GB > Use Jira switched to DB Jira > show collections; Jiratest system.indexes > 5. Importing the JSON to Mongodb with below command;mongoimport-d jira-c jiratest C:/jiratest.txt6. Done.



From for notes (Wiz)

Access Jira RESTful API by CURL

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.