版本:GitLab Community Edition [11.9.4](https://gitlab.com/gitlab-org/gitlab-ce/tags/v11.9.4)
1.設(shè)置person token
setting-->Access Tokens-->Personal Access Tokens 進(jìn)行添加
2.獲取projects信息
? ~ curl --header "PRIVATE-TOKEN: your token" http://localhost:8080/api/v4/projects
3.獲取issues:默認(rèn)返回20調(diào),最多100條數(shù)據(jù)
curl --head --header "PRIVATE-TOKEN: your token" http://localhost:8080/api/v4/projects/3/issues?per_page=200&pages=2&state=opened&labels=IOS?per_page=50&pages=2
參數(shù)列表
issues api 鏈接
4.分頁參數(shù)信息
5.json to excel文件
api接口返回的數(shù)據(jù)為json格式,可以通過工具將json轉(zhuǎn)化為csv初坠、xlsx等格式
1. http://convertcsv.com/json-to-csv.htm
2. https://json-csv.com