Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

  1. JIRA 사이트는 https://jira.example.com이고 프로토콜은 HTTPS(SSL) 사용한다고 가정
  2. REST API URL 은 JIRA 사이트 뒤에 jira/rest/api/2/ 를 붙이고 action 을 기술(Ex:  jira/rest/api/2/issue,  jira/rest/api/2/project)
  3. 인증은 HTTP Basic Auth 를 사용하며 ID/Pwd 는 admin/admin
  4. HTTP 요청 헤더에 Content-Type: application/json 가 설정되어야 JIRA 가 제대로 처리함

Issue

Issue 생성

Code Block
titledata.js
    "fields": {
        "project": {
            "id": "10000"
        },
        "summary": "something's wrong",
        "issuetype": {
            "id": "10000"
        },
        "assignee": {
            "name": "homer"
        },
        "fields": {reporter": {
            "name": "smithers"
        },
        "priority": {
            "id": "20000"
        },
        "labels": [
            "bugfix",
            "blitz_test"
        ],
        "timetracking": {
            "originalEstimate": "10",
            "projectremainingEstimate": "5"
        },
        "security": {
            "id": "10000"
        },
        "versions": [
            {
                "summaryid": "No REST for the Wicked."10000"
            }
        ],
        "environment": "environment",
        "description": "description",
        "duedate": "Creating of an issue using ids for projects and issue types using the REST API" "2011-03-11",
        "fixVersions": [
            {
                "id": "10001"
            }
        ],
        "issuetypecomponents": [
            {
                "id": "310000"
            }
        ]      }
    }
Code Block
curl -u admin:admin -X POST --data @data.txtjs -H "Content-Type: application/json" https://jira.example.com/jira/rest/api/2/issue/ 

...