개인적으로 만들어보고 싶은 프로젝트가 생겼다. 그 프로젝트를 위해 회사 Jira의 issue들을 조회할 필요가 있었다.
1. API Token
1. 가장먼저 Jira에서 토큰을 생성해야 한다. 우측 최상단 프로필을 클릭한 후 계정 설정에 들어간다.
2. 좌측 메뉴에서 보안을 클릭한후 API 토큰 만들기 및 관리에 들어간다.
3. API 토큰 만들기를 클릭한 뒤 토큰 을 생성해준다.
4. Token을 생성한 후 복사해둔다.
2. Postman에서 조회
GET url : https://{Jirahostname}/rest/api/2/issue/{issue name}
여기서 2는 버전을 의미하는데 가장 최신 버전을 사용하고 싶으면 2대신 latest를 사용한다.
위 이미지와 같은 순서대로 입력하면 원하는 이슈 정보를 조회할 수 있다.
참고자료
Getting started
Getting started with Connect Atlassian Connect is a development framework for extending Atlassian cloud products. It handles discovery, installation, authentication, and seamless integration into the user interface. Connect is an option for building apps o
developer.atlassian.com
REST API
https://developer.atlassian.com/server/jira/platform/rest-apis/#jira-rest-clients
REST APIs
REST APIs The Jira REST APIs are used to interact with the Jira Server applications remotely, for example, when configuring webhooks. The Jira Server platform provides the REST API for common features, like issues and workflows. To get started, read the re
developer.atlassian.com
JIRA 7.6.1
https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/#api/2/search-search
JIRA 7.6.1
Returns the list of requirements for the current password policy. For example, "The password must have at least 10 characters.", "The password must not be similar to the user's name or email address.", etc. Request query parameters parametertypedescription
docs.atlassian.com
JIRA Agile 7.0.4
https://docs.atlassian.com/jira-software/REST/7.0.4/#agile/1.0/board-getAllBoards
JIRA Agile 7.0.4
Returns all issues from a board, for a given board Id. This only includes issues that the user has permission to view. Note, if the user does not have permission to view the board, no issues will be returned at all. Issues returned from this resource inclu
docs.atlassian.com
api/3
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-get
developer.atlassian.com
oauth로 인증
https://developer.atlassian.com/cloud/jira/platform/oauth-2-3lo-apps/
OAuth
Code samples If you prefer to figure things out from the source code, feel free to check the output of this tutorial on Bitbucket (look for the java directory). Note, there are examples in that repository for other languages including Node.js, PHP, Python,
developer.atlassian.com
'Backend' 카테고리의 다른 글
[oAuth2] Node Express로 google oAuth2 사용하기[1. 설정] (0) | 2022.08.24 |
---|---|
[Firebase] Firebase, FireStore 설정 및 사용 [2] + React (0) | 2022.05.21 |
[Firebase] Firebase, FireStore 설정 및 사용 [1] (0) | 2022.05.07 |
[Backend] GRPC ? NATS? (0) | 2022.05.04 |
ProtoBuf (Protocol Buffers) 란? (Javascript 예제) (2) | 2021.06.30 |