Skip to main content
Skip table of contents

Jigit - REST APIs

There are REST endpoints for reading data

Only system administrators can call these endpoints.

Basic information

URL: {JIRA_BASE_URL}/rest/jigit/1.0/configurations
HTTP verb: GET

Request headers:

  • Content-Type: application/json

Response headers:

  • Content-Type: application/json

Get configurations

URL: {JIRA_BASE_URL}/rest/jigit/1.0/configurations

Get a configuration

URL: {JIRA_BASE_URL}/rest/jigit/1.0/configurations?repoName={repoName}

Where:

  • repoName is the repoName of the configuration rule (it should be URL encoded).

Get Gerrit changes for an issue

URL: {JIRA_BASE_URL}/rest/jigit/1.0/gerrit/changes/{issueKey}

Where

  • issueKey is the issue key

CODE
{
   "id":"Combiner1~TEST-10_test1~I7759e29c79da78887d931700ee54814f1f28a114",
   "project":"Combiner1",
   "branch":"TEST-10_test1",
   "changeId":"I7759e29c79da78887d931700ee54814f1f28a114",
   "number":8,
   "subject":"second review",
   "owner":{
      "id":1000000,
      "name":"Administrator",
      "userName":"admin"
   },
   "assignee":{
      "id":1000001,
      "name":"Admin Admin",
      "userName":"Admin"
   },
   "submitter":{
      "id":1000003,
      "name":"name-submitter",
      "userName":"username-submitter"
   },
   "created":1643862494000,
   "updated":1644815007000,
   "submitted":1644778743000,
   "reviewers":{
      "accounts":[
         {
            "id":1000003,
            "name":"name-submitter",
            "userName":"submitter-submitter"
         }
      ]
   },
   "status":"MERGED",
   "messages":[
      {
         "id":"8bda6ec9030bcad40f85d2295a523e885018a5af",
         "tag":"autogenerated:gerrit:newWipPatchSet",
         "author":{
            "id":1000000,
            "name":"Administrator",
            "userName":"admin"
         },
         "realAuthor":{
            "id":1000000,
            "name":"Administrator",
            "userName":"admin"
         },
         "date":1643862494000,
         "message":"Uploaded patch set 1.",
         "revisionNumber":1
      },
      {
         "id":"cf7b4d2a1694b12392cd8d9a16baf4246b4f08dd",
         "author":{
            "id":1000003,
            "name":"name-submitter",
            "userName":"username"
         },
         "realAuthor":{
            "id":1000003,
            "name":"alex",
            "userName":"alex"
         },
         "date":1644778679000,
         "message":"Patch Set 1: Code-Review+2\n\nGood TEST-10",
         "revisionNumber":1
      },
      {
         "id":"e3269cacd262603d727101bfd7fa5705ab2d2d43",
         "tag":"autogenerated:gerrit:setAssignee",
         "author":{
            "id":1000003,
            "name":"alex",
            "userName":"alex"
         },
         "realAuthor":{
            "id":1000003,
            "name":"alex",
            "userName":"alex"
         },
         "date":1644815007000,
         "message":"Assignee added: Admin Admin <alex@gmail.com>",
         "revisionNumber":1
      }
   ],
   "url":"http://localhost:8080/c/Combiner1/+/8"
}

Updated:

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.